python - error: 'local path ______ cannot be added to user session' in Apache Livy -
i trying submit python file rest api giving error. using local mode , command running given below:
$curl -x post --data '{"file":"/users/neha/desktop/spark_project/examples/spark_livy_ex3.py"}' -h "content-type: application/json" localhost:8998/batches "requirement failed: local path /users/neha/desktop/spark_project/examples/spark_livy_ex3.py cannot added user sessions." from link https://groups.google.com/a/cloudera.org/forum/#!topic/livy-user/mm-xehandhu found have modify livy.conf modifying livy.conf adding /users/neha/desktop/spark_project/examples/ directory livy.file.local-dir-whitelist. again run code above curl command getting same error.
note 'spark_livy_ex3.py' python file want run.
how can resolve problem?
Comments
Post a Comment