Sparkcontext: error initializing sparkcontext workaround
Spark reports an error when configuring a highly available cluster
error sparkcontext: error initializing sparkcontext. Java.net.connectexception: call from Hadoop 102/192.168.10.102 to Hadoop 102: 8020 failed on connection exception: java.net.connectexception: connection rejected
This is because we configured spark logs to be stored in HDFS, but Hadoop was not opened after the spark cluster was started, resulting in an error when submitting tasks.
Solution:
- no longer store the event log
find the spark installation directory/conf/spark-defaults.conf file, as shown in the figure, and comment out the corresponding event log part
store the event log locally instead of in HDFS
replace the directory in the second line in the figure above with the Linux local directory to start the Hadoop cluster (i.e. HDFS service)
investigate the cause of the error, Or we configured the spark log to be stored in HDFS, but did not open HDFS, so start the Hadoop cluster OL>
Read More:
- Loadlibrary failed with error 126 workaround
- Workaround: windowserror: [error 193]% 1 is not a valid Win32 Application
- An error occurs when HBase uses the shell command: pleaseholdexception: Master is initializing solution
- Error in initializing namenode when configuring Hadoop!!!
- How to Solve Hbase Error: Master is initializing
- A method to solve the error – 110 whilst initializing SD card of raspberry pie
- Python reports oserror: initializing from file failed
- hbase ERROR org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- Solution to “initializing the Oracle asmlib driver: [failed]”
- Python memoryerror (initializing a large matrix)
- MSP-EXP430F5529LP: Error initializing emulator: No USB FET was found
- The list command in HBase shell reported an error org.apache.hadoop . hbase.PleaseHoldException : Master is initializing
- Attempting to fetch value instead of handling error Internal: failed initializing StreamExecutor for
- Solve MySQL installation error: initializing database prompts an error when installing mysql
- Solve the error OMP: error # 15: initializing libiomp5. Dylib
- Oracle login error: Oracle error 6 initializing SQL * plus (normal before)
- Vue — run ‘NPM audit fix’ to fix them, or ‘NPM audit’ for details appears when initializing the installation
- “OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized“ error
- Spark SQL startup error: error creating transactional connection factory
- [Solved] hiveonspark:Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask