Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-6094

Zeppelin Impersonate doesn't work properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.1, 0.11.2
    • 0.12.0
    • None
    • None
    • ubuntu 22.04
      java 11
      zeppelin 0.11.2

    Description

      I added 

      export ZEPPELIN_IMPERSONATE_CMD='sudo -H -u ${ZEPPELIN_IMPERSONATE_USER} bash -c ' to zeppelin-env.sh

      Try to run shell interpreter and got the error:
      org.apache.zeppelin.interpreter.InterpreterException: java.io.IOException: Fail to launch interpreter process: Interpreter download command: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:///opt/zeppelin/conf/log4j.properties -Dlog4j.configurationFile=file:///opt/zeppelin/conf/log4j2.properties -Dzeppelin.log.file=/opt/zeppelin/logs/zeppelin-interpreter-shi-fialkovskii-fialkovskii-zeppelin-research-pilot.mgt.log -cp '':/opt/zeppelin/interpreter/sh/:::/opt/zeppelin/interpreter/zeppelin-interpreter-shaded-0.11.2.jar org.apache.zeppelin.interpreter.remote.RemoteInterpreterDownloader 10.80.128.1 43809 shi /opt/zeppelin/local-repo/shi [INFO] Interpreter launch command: sudo -H -u rfialkovskii bash -c source /opt/zeppelin/conf/zeppelin-env.sh; /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:///opt/zeppelin/conf/log4j.properties -Dlog4j.configurationFile=file:///opt/zeppelin/conf/log4j2.properties -Dzeppelin.log.file=/opt/zeppelin/logs/zeppelin-interpreter-shi-rfialkovskii-rfialkovskii-zeppelin-research-pilot.mgt.log -Xmx1024m -cp '':/opt/zeppelin/local-repo/shi/:/opt/zeppelin/interpreter/sh/:::/opt/zeppelin/interpreter/zeppelin-interpreter-shaded-0.11.2.jar org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer 10.80.128.1 43809 shi-rfialkovskii : [INFO] Interpreter launch command: sudo -H -u rfialkovskii bash -c source /opt/zeppelin/conf/zeppelin-env.sh; /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:///opt/zeppelin/conf/log4j.properties -Dlog4j.configurationFile=file:///opt/zeppelin/conf/log4j2.properties -Dzeppelin.log.file=/opt/zeppelin/logs/zeppelin-interpreter-shi-rfialkovskii-rfialkovskii-zeppelin-research-pilot.mgt.log -Xmx1024m -cp '':/opt/zeppelin/local-repo/shi/:/opt/zeppelin/interpreter/sh/:::/opt/zeppelin/interpreter/zeppelin-interpreter-shaded-0.11.2.jar org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer 10.80.128.1 43809 shi-rfialkovskii :/opt/zeppelin/bin/interpreter.sh: line 281: exec: sudo -H -u rfialkovskii bash -c: not found at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.open(RemoteInterpreter.java:128) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:270) at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:428) at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:68) at org.apache.zeppelin.scheduler.Job.run(Job.java:186) at org.apache.zeppelin.scheduler.AbstractScheduler.runJob(AbstractScheduler.java:135) at org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:186) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.io.IOException: Fail to launch interpreter process: Interpreter download command: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:///opt/zeppelin/conf/log4j.properties -Dlog4j.configurationFile=file:///opt/zeppelin/conf/log4j2.properties -Dzeppelin.log.file=/opt/zeppelin/logs/zeppelin-interpreter-shi-rfialkovskii-rfialkovskii-zeppelin-research-pilot.mgt.log -cp '':/opt/zeppelin/interpreter/sh/:::/opt/zeppelin/interpreter/zeppelin-interpreter-shaded-0.11.2.jar org.apache.zeppelin.interpreter.remote.RemoteInterpreterDownloader 10.80.128.1 43809 shi /opt/zeppelin/local-repo/shi [INFO] Interpreter launch command: sudo -H -u rfialkovskii bash -c source /opt/zeppelin/conf/zeppelin-env.sh; /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:///opt/zeppelin/conf/log4j.properties -Dlog4j.configurationFile=file:///opt/zeppelin/conf/log4j2.properties -Dzeppelin.log.file=/opt/zeppelin/logs/zeppelin-interpreter-shi-rfialkovskii-rfialkovskii-zeppelin-research-pilot.mgt.log -Xmx1024m -cp '':/opt/zeppelin/local-repo/shi/:/opt/zeppelin/interpreter/sh/:::/opt/zeppelin/interpreter/zeppelin-interpreter-shaded-0.11.2.jar org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer 10...1 43809 shi-rfialkovskii : [INFO] Interpreter launch command: sudo -H -u rfialkovskii bash -c source /opt/zeppelin/conf/zeppelin-env.sh; /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:///opt/zeppelin/conf/log4j.properties -Dlog4j.configurationFile=file:///opt/zeppelin/conf/log4j2.properties -Dzeppelin.log.file=/opt/zeppelin/logs/zeppelin-interpreter-shi-rfialkovskii-rfialkovskii-zeppelin-research-pilot.mgt.log -Xmx1024m -cp '':/opt/zeppelin/local-repo/shi/:/opt/zeppelin/interpreter/sh/:::/opt/zeppelin/interpreter/zeppelin-interpreter-shaded-0.11.2.jar org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer 10...1 43809 shi-rfialkovskii :/opt/zeppelin/bin/interpreter.sh: line 281: exec: sudo -H -u rfialkovskii bash -c: not found at org.apache.zeppelin.interpreter.remote.ExecRemoteInterpreterProcess.start(ExecRemoteInterpreterProcess.java:97) at org.apache.zeppelin.interpreter.ManagedInterpreterGroup.getOrCreateInterpreterProcess(ManagedInterpreterGroup.java:68) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getOrCreateInterpreterProcess(RemoteInterpreter.java:103) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.internal_create(RemoteInterpreter.java:153) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.open(RemoteInterpreter.java:125) ... 9 more

      When try to run 'sudo -H -u rfialkovskii -c ' from the terminal everything works fine.

      Attachments

        Issue Links

          Activity

            People

              Fialkovsky Ruslan Fialkovsky
              Fialkovsky Ruslan Fialkovsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: