Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

HDP HBASE Classpath

avatar
Expert Contributor

I am reading "Enable the Atlas Book & Bridge for Apache HBase" https://atlas.apache.org/Hook-HBase.html, and get stuck on the step below

Link Atlas hook jars in HBase classpath - 'ln -s <atlas package>/hook/hbase/* <hbase-home>/lib/'

Where is the HBase classpath in HDP?

I checked the file hbase_site.xml but still got lost. From the file,

 

# Extra Java CLASSPATH elements. Optional.
export HBASE_CLASSPATH=${HBASE_CLASSPATH}

 

Is the classpath env variable specified somewhere else?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Hi @Seaport 

 

If you're using ambari, Enable Atlas Hook should take case of that. In addition to that, follow the steps below:

 

  1. cp /usr/hdp/current/atlas-server/conf/atlas-application.properties /etc/hbase/conf
  2. get a valid ticket from atlas user
  3. export HBASE_CONF_DIR=/usr/hdp/current/hbase-client/conf
  4. In ambari > hbase > advanced hbase-site add: hbase.coprocessor.master.classes=org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor, org.apache.atlas.hbase.hook.HBaseAtlasCoprocessor (Restart required).
  5. Finally run: /usr/hdp/current/atlas-server/hook-bin/import-hbase.sh
 
 
 
 
 
 

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

Hi @Seaport 

 

If you're using ambari, Enable Atlas Hook should take case of that. In addition to that, follow the steps below:

 

  1. cp /usr/hdp/current/atlas-server/conf/atlas-application.properties /etc/hbase/conf
  2. get a valid ticket from atlas user
  3. export HBASE_CONF_DIR=/usr/hdp/current/hbase-client/conf
  4. In ambari > hbase > advanced hbase-site add: hbase.coprocessor.master.classes=org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor, org.apache.atlas.hbase.hook.HBaseAtlasCoprocessor (Restart required).
  5. Finally run: /usr/hdp/current/atlas-server/hook-bin/import-hbase.sh
 
 
 
 
 
 

avatar
Expert Contributor

@ManuelCalvo Thanks.

Your solution works. My environment does not have Kerberos and Ranger enabled. So,

  • I skipped step 2
  • For step 4, hbase.coprocessor.master.classes = org.apache.atlas.hbase.hook.HBaseAtlasCoprocessor

Also, as I found out, Atlas currently only stores HBase metadata and does not store HBase lineage data as it does for Hive.