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

Error IOException: error=13, Permission denied with conda commands on python-interpreter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.8.0
    • None
    • python-interpreter
    • Im using CentOS 7.8 and HDP 3.1.4 with Zeppelin 0.8.0

    Description

      After configuring python interpreter, it is running OK. 

      But when I try to run "%conda list" or "%python.conda list" or any conda command I get the error:

       

      java.io.IOException: error=13, Permission denied at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) at org.apache.zeppelin.python.PythonCondaInterpreter.runCommand(PythonCondaInterpreter.java:400) at org.apache.zeppelin.python.PythonCondaInterpreter.runCondaCommandForTextOutput(PythonCondaInterpreter.java:180) at org.apache.zeppelin.python.PythonCondaInterpreter.runCondaInfo(PythonCondaInterpreter.java:263) at org.apache.zeppelin.python.PythonCondaInterpreter.interpret(PythonCondaInterpreter.java:108) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:103) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:633) at org.apache.zeppelin.scheduler.Job.run(Job.java:188) at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:140) 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)

      At log file, the error was:

       

      ERROR [2020-10-08 14:10:01,469] ({pool-2-thread-4} Job.java[run]:190) - Job failed
      org.apache.zeppelin.interpreter.InterpreterException: java.io.IOException: Cannot run program "conda": error=13, Permission denied
       at org.apache.zeppelin.python.PythonCondaInterpreter.interpret(PythonCondaInterpreter.java:114)
       at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:103)
       at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:633)
       at org.apache.zeppelin.scheduler.Job.run(Job.java:188)
       at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:140)
       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: Cannot run program "conda": error=13, Permission denied
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
       at org.apache.zeppelin.python.PythonCondaInterpreter.runCommand(PythonCondaInterpreter.java:400)
       at org.apache.zeppelin.python.PythonCondaInterpreter.runCommand(PythonCondaInterpreter.java:426)
       at org.apache.zeppelin.python.PythonCondaInterpreter.getCondaEnvs(PythonCondaInterpreter.java:197)
       at org.apache.zeppelin.python.PythonCondaInterpreter.runCondaEnvList(PythonCondaInterpreter.java:203)
       at org.apache.zeppelin.python.PythonCondaInterpreter.interpret(PythonCondaInterpreter.java:81)
       ... 11 more
      Caused by: java.io.IOException: error=13, Permission denied
       at java.lang.UNIXProcess.forkAndExec(Native Method)
       at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
       at java.lang.ProcessImpl.start(ProcessImpl.java:134)
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
       ... 16 more

       

      I tryed to install Anaconda version Anaconda3-2020.02-Linux-x86_64.sh and configured another python interpreter changing the parameter below

       

      zeppelin.python /opt/anaconda3/bin/python

       

      I restarted Zeppelin and create another notebook. Python commands is OK, but conda commands get the same error messages.

       

      The error seems to occur at line 400 of https://github.com/apache/zeppelin/blob/v0.8.0/python/src/main/java/org/apache/zeppelin/python/PythonCondaInterpreter.java after try to execute runCondaList() method

       

      Any suggestion? Please help!

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            josehcr.trt3 Jose Humberto Cruvinel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: