Changeset 30939
- Timestamp:
- 2016-10-26T13:57:19+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/solr-extracted-features/trunk/_RUN.bash
r30936 r30939 27 27 run_jps_daemons="" 28 28 run_jps_daemons_suffix="daemon" 29 using_hdfs=0 29 30 30 31 if [ "x${input_dir##hdfs://*}" = "x" ] || [ "x${output_dir##hdfs://*}" = "x" ] ; then … … 32 33 run_jps=1 33 34 run_jps_daemons="Spark" 35 using_hdfs=1 34 36 fi 35 37 … … 50 52 echo "* Checking for $run_jps_daemons $run_jps_daemons_suffix" 51 53 echo "****" 52 jps | sed 's/^/* /g'54 jps | egrep -v " Jps$" | sed 's/^/* /g' 53 55 echo "****" 54 56 echo "* Done" … … 59 61 fi 60 62 63 if [ "$using_hdfs" = "1" ] ; then 64 hadoop fs -test -d "$output_dir" 65 66 if [ $? != 0 ] ; then 67 echo "Creating directory:" 68 echo " $output_dir" 69 fi 70 fi 71 61 72 self_contained_jar=target/htrc-ef-ingest-0.9-jar-with-dependencies.jar 62 73 base_cmd="spark-submit --class org.hathitrust.PrepareForIngest $master_opt $self_contained_jar" … … 74 85 fi 75 86 echo 76 sleep 187 sleep 2 77 88 78 89 $cmd 79 90 80 # spark-submit --class org.hathitrust.PrepareForIngest --master local[4] target/htrc-ef-ingest-0.9-jar-with-dependencies.jar --json-filelist=pd-file-listing-step10000.txt pd-ef-json-files pd-solr-json-files $*81 82 # spark-submit --class org.hathitrust.PrepareForIngest --master local[4] target\htrc-ef-ingest-0.9-jar-with-dependencies.jar --json-filelist=pd-file-listing-step1000.txt json-files solr-files $*
Note:
See TracChangeset
for help on using the changeset viewer.