代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
CURRENT_DIR=`pwd`
# Read the version from version.sbt
SPARK_LUCENERDD_VERSION=`cat version.sbt | awk '{print $5}' | xargs`
# You should have downloaded this spark version under your ${HOME}
SPARK_VERSION="3.2.0"
echo "==============================================="
echo "Loading LuceneRDD with version ${SPARK_LUCENERDD_VERSION}"
echo "==============================================="
echo "==============================================="
echo "SPARK version: ${SPARK_VERSION}"
echo "==============================================="
# Assumes that spark is installed under home directory
HOME_DIR=`echo ~`
#export SPARK_LOCAL_IP=localhost
SPARK_HOME=${HOME_DIR}/spark-${SPARK_VERSION}-bin-hadoop3.2
# spark-lucenerdd assembly JAR
MAIN_JAR=${CURRENT_DIR}/target/scala-2.12/spark-lucenerdd-assembly-${SPARK_LUCENERDD_VERSION}.jar
# Run spark shell locally
${SPARK_HOME}/bin/spark-shell --jars "${MAIN_JAR}" \
--conf "spark.executor.memory=1g" \
--conf "spark.driver.memory=1g" \
--conf "spark.rdd.compress=true" \
--conf "spark.serializer=org.apache.spark.serializer.KryoSerializer" \
--conf "spark.kryo.registrator=org.zouzias.spark.lucenerdd.LuceneRDDKryoRegistrator" \
--conf spark.executor.extraJavaOptions="-Dlucenerdd.index.store.mode=disk" \
--conf spark.driver.extraJavaOptions="-Dlucenerdd.index.store.mode=disk" \
--conf "spark.kryoserializer.buffer=24mb" \
--master local[*]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。