Managing Livy Dependencies
This topic describes how to pass the dependencies to Livy applications in HPE Ezmeral Runtime Enterprise using Notebook.
About this task
You can configure dependencies for Livy Applications using Notebook on HPE Ezmeral Runtime Enterprise. The
following schemas are supported for passing dependencies to Livy applications:
local
dtap
Example
To configure the dependencies on Livy Applications using Notebook, perform the following steps:
- Log in to HPE Ezmeral Runtime Enterprise as Kubernetes Tenant Administrator or Kubernetes Tenant Member.
- Click DataTaps >TenantStorage.
- Create
jars
directory. - Upload dependencies for Spark applications on
jars
directory. - Click Notebooks > Notebook Endpoints > Access Points.
- Add the following configuration options for Livy
applications:
%%configure -f { "conf": { "spark.hadoop.fs.dtap.impl": "com.bluedata.hadoop.bdfs.Bdfs" , "spark.hadoop.fs.AbstractFileSystem.dtap.impl": "com.bluedata.hadoop.bdfs.BdAbstractFS" , "spark.hadoop.fs.dtap.impl.disable.cache": "false" , "spark.kubernetes.driver.label.hpecp.hpe.com/dtap": "hadoop2-job" , "spark.kubernetes.executor.label.hpecp.hpe.com/dtap": "hadoop2-job" , "spark.driver.extraClassPath": "/opt/bdfs/bluedata-dtap.jar" , "spark.executor.extraClassPath": "/opt/bdfs/bluedata-dtap.jar" } , "jars": [ "local:///opt/bdfs/bluedata-dtap.jar" ] , "pyFiles": [ "dtap://TenantStorage/python/kazoo-2.8.0-py2.py3-none-any.whl" ] }
- Restart the kernel.