Error message
org.apache.zeppelin.interpreter.InterpreterException: java.io.IOException: Fail to launch interpreter process:
Apache Zeppelin requires either Java 8 update 151 or newer
at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.open(RemoteInterpreter.java:134)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:298)
at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:433)
at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:75)
at org.apache.zeppelin.scheduler.Job.run(Job.java:172)
at org.apache.zeppelin.scheduler.AbstractScheduler.runJob(AbstractScheduler.java:130)
at org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Fail to launch interpreter process:
Apache Zeppelin requires either Java 8 update 151 or newer
Solution
Step 1: upgrade JDK to JDK1.8
Step 2: modify the Java of Hadoop and other services
Step 3: modify the Java of zeppelin-env.sh
Step 4: modify the JDK path in the common.sh file in the bin directory of Zeppelin (important!!!)
function check_java_version() {
//Modify JAVA PATH to: /opt/modules/jdk1.8.0_202
java_ver_output=$("${JAVA:-/opt/modules/jdk1.8.0_202}" -version 2>&1)
jvmver=$(echo "$java_ver_output" | grep '[openjdk|java] version' | awk -F'"' 'NR==1 {print $2}' | cut -d\- -f1)
JVM_VERSION=$(echo "$jvmver"|sed -e 's|^\([0-9][0-9]*\)\..*$|\1|')
if [ "$JVM_VERSION" = "1" ]; then
JVM_VERSION=$(echo "$jvmver"|sed -e 's|^1\.\([0-9][0-9]*\)\..*$|\1|')
fi
if [ "$JVM_VERSION" -lt 8 ] || { [ "$JVM_VERSION" -eq 8 ] && [ "${jvmver#*_}" -lt 151 ]; } ; then
echo "Apache Zeppelin requires either Java 8 update 151 or newer"
exit 1;
fi
}
Read More:
- How to Solve Zeppelin page 503 error
- [Solved] Android Studio Error: The binary version of its metadata is 1.5.1, expected version is 1.1.15.
- Kubernetes reported an error: matchexpressions: [] v1. Labelselector requirement (NIL)}: field is immutable
- laravel Error mews/captcha is locked to version 3.2.4 and an update of this package was not requested.
- Vscode pylint reported an error of “no member”, but it is running normally
- [Solved] Vue cli version is @ Vue/cli 4.5.13, and sass is used to report an error
- Maven Error: Missing artifact jdk.tools:jdk.tools:jar:1.7
- Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
- [Solved] The version of springcloud must support the current version of springboot, otherwise the startup project will report an error: error starting ApplicationContext
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- Yaml is installed, and the error YAMLLoadWarning is reported as soon as the code runs: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe.
- Jenkins reported an error when running the docker permission in the shell script
- [Solved] Elasticsearch error: cannot downgrade a node from version [7.xx.x] to version [7.xx.x]
- Error husky > pre-commit (node v10.16.3) is reported when git commit is submitted
- [Solved] Unity Error: Visual Studio Editor Package version 2.0.11 is available……..
- [Solved] Failed to invoke @ExceptionHandler method is reported after adding @ControllerAdvice
- Kettle reported an error and did not have permission to write files to HDFS
- Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0
- Xcode debugging for the real iPhone Error: code signature version is no longer supported
- [Solved] Go Get Download Dependency Error: is not using a known version control system