<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158030#M33051</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2348/divakarreddya.html" nodeid="2348"&gt;@Divakar Annapureddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. After I download the jar of gson, it can works.&lt;/P&gt;&lt;P&gt;But I am wondering why this jar is missing ? Did this problem happen in the process of compiling the Atlas by using maven ?&lt;/P&gt;&lt;P&gt;And, after importing the metadata, the Atlas UI Web showed that there is no lineage data. Should I run the hiveserver2?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 17:52:25 GMT</pubDate>
    <dc:creator>dreamcoding</dc:creator>
    <dc:date>2016-06-27T17:52:25Z</dc:date>
    <item>
      <title>Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158025#M33046</link>
      <description>&lt;P&gt;I want to use Hive Hook to import metadata automatically. So I set-up the hive-site.xml and export HIVE_AUX_JARS_PATH, and copy the atlas-application.properties to the hive conf according the Atlas official guide:  &lt;A href="http://atlas.apache.org/Bridge-Hive.html" target="_blank"&gt;http://atlas.apache.org/Bridge-Hive.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But when I entered the Hive CLI, and typed "show tables;" or other commands. It showed that&lt;/P&gt;&lt;PRE&gt;NoClassDefFoundError: com/google/gson/GsonBuilder&lt;/PRE&gt;&lt;P&gt;I want to know how to solve it.&lt;/P&gt;&lt;P&gt;In my &amp;lt;atlas-conf&amp;gt;/atlas-application.properties, most of settings are default. I never change them. This file is shown as following:&lt;/P&gt;&lt;PRE&gt;#########  Graph Database Configs  #########
# Graph Storage
#atlas.graph.storage.backend=berkeleyje
#atlas.graph.storage.directory=${sys:atlas.home}/data/berkley

#Hbase as stoarge backend
atlas.graph.storage.backend=hbase
#For standalone mode , specify localhost
#for distributed mode, specify zookeeper quorum here - For more information refer &lt;A href="http://s3.thinkaurelius.com/docs/titan/current/hbase.html#_remote_server_mode_2" target="_blank"&gt;http://s3.thinkaurelius.com/docs/titan/current/hbase.html#_remote_server_mode_2&lt;/A&gt;
atlas.graph.storage.hostname=localhost
atlas.graph.storage.hbase.regions-per-server=1
atlas.graph.storage.lock.wait-time=10000

#Solr
#atlas.graph.index.search.backend=solr

# Solr cloud mode properties
#atlas.graph.index.search.solr.mode=cloud
#atlas.graph.index.search.solr.zookeeper-url=localhost:2181

#Solr http mode properties
#atlas.graph.index.search.solr.mode=http
#atlas.graph.index.search.solr.http-urls=http://localhost:8983/solr

# Graph Search Index
#ElasticSearch
atlas.graph.index.search.backend=elasticsearch
atlas.graph.index.search.directory=${sys:atlas.home}/data/es
atlas.graph.index.search.elasticsearch.client-only=false
atlas.graph.index.search.elasticsearch.local-mode=true
atlas.graph.index.search.elasticsearch.create.sleep=2000


#########  Notification Configs  #########
atlas.notification.embedded=true
atlas.kafka.data=${sys:atlas.home}/data/kafka
atlas.kafka.zookeeper.connect=localhost:9026
atlas.kafka.bootstrap.servers=localhost:9027
atlas.kafka.zookeeper.session.timeout.ms=400
atlas.kafka.zookeeper.sync.time.ms=20
atlas.kafka.auto.commit.interval.ms=1000
atlas.kafka.auto.offset.reset=smallest
atlas.kafka.hook.group.id=atlas


#########  Hive Lineage Configs  #########
# This models reflects the base super types for Data and Process
#atlas.lineage.hive.table.type.name=DataSet
#atlas.lineage.hive.process.type.name=Process
#atlas.lineage.hive.process.inputs.name=inputs
#atlas.lineage.hive.process.outputs.name=outputs

## Schema
atlas.lineage.hive.table.schema.query.hive_table=hive_table where name='%s'\, columns
atlas.lineage.hive.table.schema.query.Table=Table where name='%s'\, columns

## Server port configuration
#atlas.server.http.port=21000
#atlas.server.https.port=21443

#########  Security Properties  #########

# SSL config
atlas.enableTLS=false

#truststore.file=/path/to/truststore.jks
#cert.stores.credential.provider.path=jceks://file/path/to/credentialstore.jceks

#following only required for 2-way SSL
#keystore.file=/path/to/keystore.jks

# Authentication config

# enabled:  true or false
atlas.http.authentication.enabled=false
# type:  simple or kerberos
atlas.http.authentication.type=simple

#########  Server Properties  #########
atlas.rest.address=http://localhost:21000
# If enabled and set to true, this will run setup steps when the server starts
#atlas.server.run.setup.on.start=false

#########  Entity Audit Configs  #########
atlas.audit.hbase.tablename=ATLAS_ENTITY_AUDIT_EVENTS
atlas.audit.zookeeper.session.timeout.ms=1000
atlas.audit.hbase.zookeeper.quorum=localhost:2181

#########  High Availability Configuration ########
atlas.server.ha.enabled=false
#### Enabled the configs below as per need if HA is enabled #####
#atlas.server.ids=id1
#atlas.server.address.id1=localhost:21000
#atlas.server.ha.zookeeper.connect=localhost:2181
#atlas.server.ha.zookeeper.retry.sleeptime.ms=1000
#atlas.server.ha.zookeeper.num.retries=3
#atlas.server.ha.zookeeper.session.timeout.ms=20000
## if ACLs need to be set on the created nodes, uncomment these lines and set the values ##
#atlas.server.ha.zookeeper.acl=&amp;lt;scheme&amp;gt;:&amp;lt;id&amp;gt;
#atlas.server.ha.zookeeper.auth=&amp;lt;scheme&amp;gt;:&amp;lt;authinfo&amp;gt;


#### atlas.login.method {FILE,LDAP,AD} ####
atlas.login.method=FILE

### File path of users-credentials
atlas.login.credentials.file=${sys:atlas.home}/conf/users-credentials.properties

&lt;/PRE&gt;&lt;P&gt;At last, I noticed that, these are some settings shown in the official guide:&lt;/P&gt;&lt;PRE&gt;atlas.hook.hive.synchronous - boolean, true to run the hook synchronously. default false
atlas.hook.hive.numRetries - number of retries for notification failure. default 3
atlas.hook.hive.minThreads - core number of threads. default 5
atlas.hook.hive.maxThreads - maximum number of threads. default 5
atlas.hook.hive.keepAliveTime - keep alive time in msecs. default 10
atlas.hook.hive.queueSize - queue size for the threadpool. default 10000&lt;/PRE&gt;&lt;P&gt;Should I add these setting in to atlas-application.properties? And should I start the Hiveserver2 and the service of metastore of hive ?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 11:37:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158025#M33046</guid>
      <dc:creator>dreamcoding</dc:creator>
      <dc:date>2016-06-27T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158026#M33047</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/8733/dreamcoding.html" nodeid="8733"&gt;@Ethan Hsieh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Issue seems to missing gson.jar in the AUX path. Please check and download the gson jar from the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.java2s.com/Code/Jar/g/Downloadgson222jar.htm" target="_blank"&gt;http://www.java2s.com/Code/Jar/g/Downloadgson222jar.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 11:44:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158026#M33047</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-06-27T11:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158027#M33048</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/8733/dreamcoding.html" nodeid="8733"&gt;@Ethan Hsieh&lt;/A&gt;&lt;P&gt;I think 2.3.1 is latest version &lt;A href="http://grepcode.com/snapshot/repo1.maven.org/maven2/com.google.code.gson/gson/2.3.1/"&gt;gsonlink&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 11:51:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158027#M33048</guid>
      <dc:creator>divakarreddy_a</dc:creator>
      <dc:date>2016-06-27T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158028#M33049</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/8733/dreamcoding.html"&gt;Ethan Hsieh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ideally you should find that jar already available in your HDP installation like the following location:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/2.4.2.0-258/hadoop/lib/gson-2.2.4.jar 
/usr/hdp/2.4.2.0-258/hadoop/client/gson-2.2.4.jar
&lt;/PRE&gt;&lt;P&gt;So it will be good to either use that jar as it ships with the HDP installation or check your classpath to see why that JAR is not added to your process.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 13:36:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158028#M33049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-27T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158029#M33050</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3823/joysensharma.html" nodeid="3823"&gt;@Joy&lt;/A&gt;&lt;P&gt;I haven't down the HDP. Because I want to learn how to configure and use Atlas lonely, I compile the Atlas 0.7 by using maven, and download the Hive.&lt;/P&gt;&lt;P&gt;So I am wondering , how to solve it other than download this jar file manually, or is the reason that the maven didn't include this jar ?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 17:19:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158029#M33050</guid>
      <dc:creator>dreamcoding</dc:creator>
      <dc:date>2016-06-27T17:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158030#M33051</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2348/divakarreddya.html" nodeid="2348"&gt;@Divakar Annapureddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. After I download the jar of gson, it can works.&lt;/P&gt;&lt;P&gt;But I am wondering why this jar is missing ? Did this problem happen in the process of compiling the Atlas by using maven ?&lt;/P&gt;&lt;P&gt;And, after importing the metadata, the Atlas UI Web showed that there is no lineage data. Should I run the hiveserver2?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 17:52:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158030#M33051</guid>
      <dc:creator>dreamcoding</dc:creator>
      <dc:date>2016-06-27T17:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158031#M33052</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;After I import the metadata from Hive into Atlas, the Atlas Web UI showed that No lineage data was found. &lt;/P&gt;&lt;P&gt;In general, it should showed the lineage between Hive and Atlas.&lt;/P&gt;&lt;P&gt;Should I run the hiveserver2 or change the file:atlas-application.properties ?
&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 17:57:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158031#M33052</guid>
      <dc:creator>dreamcoding</dc:creator>
      <dc:date>2016-06-27T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158032#M33053</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/8733/dreamcoding.html" nodeid="8733"&gt;@Ethan Hsieh&lt;/A&gt;&lt;P&gt;Have you run import-hive.sh? From where the tabled were created?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 18:39:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158032#M33053</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-06-27T18:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hook Error: NoClassDefFoundError: com/google/gson/GsonBuilder</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158033#M33054</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The table were created in the Hive CLI, and I run import-hive.sh in the dir of $HIVE_HOME/bin.&lt;/P&gt;&lt;P&gt;But there is another more important question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/41898/using-hive-hook-file-does-not-exist-atlas-client-0.html"&gt;https://community.hortonworks.com/questions/41898/using-hive-hook-file-does-not-exist-atlas-client-0.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the link above, the result showed a error: &lt;/P&gt;&lt;PRE&gt; File does not exist: hdfs://localhost:9000/usr/local/data-governance/apache-atlas-0.7-incubating-SNAPSHOT/hook/hive/atlas-client-0.7-incubating-SNAPSHOT.jar&lt;/PRE&gt;&lt;P&gt;Could you help me to find the file: atlas-client-0.7-incubating-SNAPSHOT.jar ?&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 12:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hook-Error-NoClassDefFoundError-com-google-gson/m-p/158033#M33054</guid>
      <dc:creator>dreamcoding</dc:creator>
      <dc:date>2016-06-29T12:13:11Z</dc:date>
    </item>
  </channel>
</rss>

