Skip to content

tijmenr/livy_cdh_parcel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Livy parcel for Cloudera CDH5

Enables the creation of a parcel and CSD to install Livy on a Cloudera CDH5 cluster.

Building

Use the following commands to build the CSD and parcel:

./build.sh all

Parcel installation

  1. The CSD, parcel and checksum files are generated in the target directory.
  2. Copy the generated CSD file to /opt/cloudera/csd on the CM Manager node.
  3. Copy the LIVY-0.6.0-el7.parcel parcel file to /opt/cloudera/parcel-repo on the CM Manager node.
  4. Also copy the LIVY-0.6.0-el7.parcel.sha file (containing the SHA1 checksum of the parcel file).
  5. Restart the cloudera-scm-server service (or, in recent CM versions, you can just check for new parcels).
  6. Distribute and activate the parcel via Cloudera Manager.

If you have a webserver available, you can also replace steps 2 and 3 above with:

  1. Make the generated LIVY-0.6.0-el7.parcel and manifest.json files available via the webserver.
  2. Add this location as a parcel source in Cloudera Manager.

Service installation and configuration

  1. In Cloudera Manager, choose Add Service to add a Livy REST service to one or more (edge) nodes.

  2. Enable impersonation for the livy user:

    1. In the HDFS service configuration, under Cluster-wide Advanced Configuration Snippet (Safety Valve) for core-site.xml, add two name/value/description triplets:

      Name hadoop.proxyuser.livy.hosts
      Value
      Description Comma-delimited list of hosts that you want to allow the LIVY user to impersonate. The default '*' allows all hosts. To disable entirely, use a string that does not correspond to a host name, such as '_no_host'.
      Name hadoop.proxyuser.livy.groups
      Value *
      Description Comma-delimited list of groups that you want to allow the LIVY user to impersonate. The default '*' allows all groups. To disable entirely, use a string that does not correspond to a group name, such as 'no_group'.
    2. Restart HDFS and all dependent services (i.e. basically everything) to activate the changes.

  3. Configure the Livy service:

    Name Value
    Livy Spark Version spark2
    Enable user authentication true
    Enable TLS/SSL for Livy REST server true

    Also fill in the details for the SSL certificate.

  4. In Cloudera Manager, under Administration - Security - Kerberos Credentials, check that principals for the Livy REST server(s) have been created. If not, use Generate missing credentials to do so.

  5. Start Livy.

Links

About

Parcel to deploy Apache Livy on Cloudera CDH

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published