<?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: Error with &amp;quot;Make sure HIVE_CONF_DIR is set correctly&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37865#M19335</link>
    <description>&lt;P&gt;It works!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we see in the outpulog, we see the HADOOP_CLASSPATH variable. Or we don't have any path for libs in hive directory...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try once to add in HADOOP_CLASSPATH the his folder but it doesn't works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is to add the the folder and /* to take all jar...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I add this one in .bash_profile:&lt;/P&gt;&lt;PRE&gt;export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/lib/hive/lib/*&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;PRE&gt;source ~/.bash_profile&lt;/PRE&gt;&lt;P&gt;And now it works. Date were&amp;nbsp;imported in Hive!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we can continue our labs with Cloudera 5!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 15:25:16 GMT</pubDate>
    <dc:creator>fmorcamp</dc:creator>
    <dc:date>2016-02-25T15:25:16Z</dc:date>
    <item>
      <title>Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37423#M19327</link>
      <description>&lt;P&gt;Hi Cloudera community! Happy to join your community! I'm a sysadmin and who love my job and like to works on new technology. So, I'm on Cloudera now! For some test, we create a cluster with 3 nodes in a labs. 1 node for Cloudera Manager, 1 node for NameNode and DataNode, and the last one as DataNode only. It's a labs to discover the new version of Cloudera 5.5. So it's just to made some test on it, not to be in production! We install these services: hdfs, hive, hue, impala, oozie, zookeeper, Mapreduce2 (Yarn), Sqoop1. One our developers, try to import some data into Hive, but we got an error. Here the command line use by our developers: sqoop import --connect jdbc:mysql://our.database.url/database --username user --password passwordtest --table table_product --target-dir /path/to/db --split-by product_id --hive-import --hive-overwrite --hive-table table_product The command start successfully, we see the mapper do the job to 100 but when the job finish, we have an error: 6/02/12 15:37:57 WARN hive.TableDefWriter: Column last_updated had to be cast to a less precise type in Hive 16/02/12 15:37:57 INFO hive.HiveImport: Loading uploaded data into Hive 16/02/12 15:37:57 ERROR hive.HiveConfig: Could not load org.apache.hadoop.hive.conf.HiveConf. Make sure HIVE_CONF_DIR is set correctly. 16/02/12 15:37:57 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf at org.apache.sqoop.hive.HiveConfig.getHiveConf(HiveConfig.java:50) at org.apache.sqoop.hive.HiveImport.getHiveArgs(HiveImport.java:392) at org.apache.sqoop.hive.HiveImport.executeExternalHiveScript(HiveImport.java:379) at org.apache.sqoop.hive.HiveImport.executeScript(HiveImport.java:337) .... I do some search in configuration file about the HIVE_CONF_DIR and doesn't find something weird. I don't find a solution about and I block on it... So our developer can't continue his test. I search in Cloudera Manager configuration too. Have you an idea about that ? I do some search on web with no success. Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:54:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37423#M19327</guid>
      <dc:creator>fmorcamp</dc:creator>
      <dc:date>2026-04-21T13:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37450#M19328</link>
      <description>&lt;P&gt;Did you try passing the --config&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry to tell you , please makesure you have hive-site.xml file &amp;nbsp;localted inside the hive conf directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please put your command line in the code section like the below .&lt;/P&gt;&lt;P&gt;you will find an icon like this in the edit windown {i} - click on em and put your code in the pop up window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Put your command line here for readability&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 03:35:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37450#M19328</guid>
      <dc:creator>MattSun</dc:creator>
      <dc:date>2016-02-15T03:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37473#M19329</link>
      <description>&lt;P&gt;Hello MattSun,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this command, I talk with my dev to try the --config option&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:mysql://our.database.url/database --username user --password passwordtest --table table_product --target-dir /path/to/db --split-by product_id --hive-import --hive-overwrite --hive-table table_product&lt;/PRE&gt;&lt;P&gt;But the --config option is not available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I check on the Sqoop documentation website and find nothing about this otption&lt;/P&gt;&lt;P&gt;&lt;A title="Sqoop Documentation page" href="https://sqoop.apache.org/docs/1.4.6/" target="_blank"&gt;https://sqoop.apache.org/docs/1.4.6/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The /etc/hive/conf/hive-site.xml is present. The hive-env.sh too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add more information about my clutser, here the differents version of our installed tools:&lt;/P&gt;&lt;PRE&gt;Parquet	     1.5.0+cdh5.5.1+176
Impala	     2.3.0+cdh5.5.1+0
YARN	     2.6.0+cdh5.5.1+924
spark	     1.5.0+cdh5.5.1+94
HDFS	     2.6.0+cdh5.5.1+924
hue-common   3.9.0+cdh5.5.1+333
hadoop-kms   2.6.0+cdh5.5.1+924
Sqoop	     1.4.6+cdh5.5.1+29
Oozie	     4.1.0+cdh5.5.1+223
Zookeeper    3.4.5+cdh5.5.1+91
Hue	     3.9.0+cdh5.5.1+333
MapReduce 1  2.6.0+cdh5.5.1+924
Hadoop	     2.6.0+cdh5.5.1+924
Hive	     1.1.0+cdh5.5.1+327
HCatalog     1.1.0+cdh5.5.1+327
MapReduce2   2.6.0+cdh5.5.1+924
Java 6	     JAVA_HOME=/usr/java/jdk1.6.0_31 java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
Java 7	     JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)&lt;/PRE&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 15:05:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37473#M19329</guid>
      <dc:creator>fmorcamp</dc:creator>
      <dc:date>2016-02-15T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37474#M19330</link>
      <description>&lt;P&gt;I try to stop all service in the cluster and restart them.&lt;/P&gt;&lt;P&gt;I use this documentation for the order to start the process&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/documentation/enterprise/5-4-x/topics/cm_mc_start_stop_service.html" target="_blank"&gt;Cloudera 5 documentation for stop/start order&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 15:15:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37474#M19330</guid>
      <dc:creator>fmorcamp</dc:creator>
      <dc:date>2016-02-15T15:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37644#M19331</link>
      <description>&lt;P&gt;To reproduce the problem, I install hadoop-client and sqoop on my machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same error here...&lt;/P&gt;&lt;P&gt;The job start, data import is done&amp;nbsp;successfully on HDFS, (I can see on Hue the job status and the database is hdfs),&lt;/P&gt;&lt;PRE&gt;16/02/18 17:01:15 INFO mapreduce.Job: Running job: job_1455812803225_0020
16/02/18 17:01:24 INFO mapreduce.Job: Job job_1455812803225_0020 running in uber mode : false
16/02/18 17:01:24 INFO mapreduce.Job:  map 0% reduce 0%
16/02/18 17:01:33 INFO mapreduce.Job:  map 25% reduce 0%
16/02/18 17:01:34 INFO mapreduce.Job:  map 50% reduce 0%
16/02/18 17:01:41 INFO mapreduce.Job:  map 100% reduce 0%
16/02/18 17:01:41 INFO mapreduce.Job: Job job_1455812803225_0020 completed successfully
16/02/18 17:01:41 INFO mapreduce.Job: Counters: 30
        File System Counters
                FILE: Number of bytes read=0
                FILE: Number of bytes written=555640
                FILE: Number of read operations=0
                FILE: Number of large read operations=0
                FILE: Number of write operations=0
                HDFS: Number of bytes read=473
                HDFS: Number of bytes written=8432
                HDFS: Number of read operations=16
                HDFS: Number of large read operations=0
                HDFS: Number of write operations=8
        Job Counters 
                Launched map tasks=4
                Other local map tasks=4
                Total time spent by all maps in occupied slots (ms)=25664
                Total time spent by all reduces in occupied slots (ms)=0
                Total time spent by all map tasks (ms)=25664
                Total vcore-seconds taken by all map tasks=25664
                Total megabyte-seconds taken by all map tasks=26279936
        Map-Reduce Framework
                Map input records=91
                Map output records=91
                Input split bytes=473
                Spilled Records=0
                Failed Shuffles=0
                Merged Map outputs=0
                GC time elapsed (ms)=351
                CPU time spent (ms)=4830
                Physical memory (bytes) snapshot=802369536
                Virtual memory (bytes) snapshot=6319828992
                Total committed heap usage (bytes)=887095296
        File Input Format Counters 
                Bytes Read=0
        File Output Format Counters 
                Bytes Written=8432
16/02/18 17:01:41 INFO mapreduce.ImportJobBase: Transferred 8,2344 KB in 30,7491 seconds (274,219 bytes/sec)
16/02/18 17:01:41 INFO mapreduce.ImportJobBase: Retrieved 91 records.&lt;/PRE&gt;&lt;P&gt;but when import with hive is start:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;16/02/18 17:01:41 WARN hive.TableDefWriter: Column last_updated had to be cast to a less precise type in Hive
16/02/18 17:01:41 INFO hive.HiveImport: Loading uploaded data into Hive
16/02/18 17:01:41 ERROR hive.HiveConfig: Could not load org.apache.hadoop.hive.conf.HiveConf. Make sure HIVE_CONF_DIR is set correctly.
16/02/18 17:01:41 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
        at org.apache.sqoop.hive.HiveConfig.getHiveConf(HiveConfig.java:50)
        at org.apache.sqoop.hive.HiveImport.getHiveArgs(HiveImport.java:392)
        at org.apache.sqoop.hive.HiveImport.executeExternalHiveScript(HiveImport.java:379)
        at org.apache.sqoop.hive.HiveImport.executeScript(HiveImport.java:337)
        at org.apache.sqoop.hive.HiveImport.importTable(HiveImport.java:241)
        at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:514)
        at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
        at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
        at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:195)
        at org.apache.sqoop.hive.HiveConfig.getHiveConf(HiveConfig.java:44)
        ... 12 more&lt;/PRE&gt;&lt;P&gt;I try few thing about that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Add variable HIVE_CONF_DIR=/etc/hive/conf to my .bash_profile file: No success&lt;/P&gt;&lt;P&gt;- Add the same variable to /usr/lib/hive/conf/hive-env.sh: no success&lt;/P&gt;&lt;P&gt;- Copy /usr/lib/sqoop/conf/sqoop-env-template.sh and add the variable inside: no success&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope somebody have an idea to help us!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 23:01:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37644#M19331</guid>
      <dc:creator>fmorcamp</dc:creator>
      <dc:date>2016-02-18T23:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37674#M19332</link>
      <description>&lt;P&gt;I am not getting it ,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.ClassNotFoundException:&lt;/PRE&gt;&lt;P&gt;sounds &amp;nbsp;more like a missing jar &amp;nbsp;to me .&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the below version , it works fine .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sqoop 1.4.4-cdh5.0.0&lt;BR /&gt;Hive 0.12.0-cdh5.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wil dig more and let you know if I come up with anything.sorry&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 17:52:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37674#M19332</guid>
      <dc:creator>MattSun</dc:creator>
      <dc:date>2016-02-19T17:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37698#M19333</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. But my problem still present...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone else with a fresh install of Cloudera Manager/CDH 5.5 can have the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For test, I try a fresh&amp;nbsp;install on an another single machine. Same error !&amp;nbsp;&lt;/P&gt;&lt;P&gt;So maybe the problem came from the client configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do the installation&amp;nbsp;I use our Cloudera Manager/CDH repository which are sync every day.&lt;/P&gt;&lt;P&gt;So I use the package and the not the parcels during installation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My test VM are on CentOS 6.6. A supported version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To start the command, I launch it since my machine (Ubuntu)&lt;/P&gt;&lt;P&gt;I install these services to work:&lt;/P&gt;&lt;PRE&gt;sudo apt-get install hadoop-client hive oozie-client sqoop&lt;/PRE&gt;&lt;P&gt;I add these variable in my ".bash_profile"&lt;/P&gt;&lt;PRE&gt;export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/share/java/slf4j-simple.jar
export HIVE_HOME=/usr/lib/hive
export PATH=$PATH:$HIVE_HOME/bin&lt;/PRE&gt;&lt;P&gt;Then I do an "scp" to recover the "/etc/sqoop", "/etc/hive", "/etc/hadoop/",&amp;nbsp;&lt;/P&gt;&lt;P&gt;The configuration seems to be ok so. If not, the command can't start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add the the HIVE_CONF_DIR variable in differents file:&lt;/P&gt;&lt;P&gt;- sqoop-env.sh&lt;/P&gt;&lt;P&gt;- hadoop-env.sh&lt;/P&gt;&lt;P&gt;- hive-env.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without any success. The process starts, but the error still present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope somebody can help me !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 15:14:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37698#M19333</guid>
      <dc:creator>fmorcamp</dc:creator>
      <dc:date>2016-02-22T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37721#M19334</link>
      <description>&lt;P&gt;On my client machine, I try to find the class and find it in a jar file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I go to /usr/lib/hive/lib folder, and look inside the hive-common.jar with this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;jar tf hive-common.jar&lt;/PRE&gt;&lt;P&gt;At the end, I can see this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;org/apache/hadoop/hive/conf/HiveConf.class&lt;/PRE&gt;&lt;P&gt;So the class is present. So why he can't find it when it start the import ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The HIVE_HOME is set to /usr/lib/hive, so, the path is valid...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I continue to search, but maybe it can give you more informations why and how to solve that !&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 22:57:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37721#M19334</guid>
      <dc:creator>fmorcamp</dc:creator>
      <dc:date>2016-02-22T22:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error with "Make sure HIVE_CONF_DIR is set correctly"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37865#M19335</link>
      <description>&lt;P&gt;It works!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we see in the outpulog, we see the HADOOP_CLASSPATH variable. Or we don't have any path for libs in hive directory...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try once to add in HADOOP_CLASSPATH the his folder but it doesn't works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is to add the the folder and /* to take all jar...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I add this one in .bash_profile:&lt;/P&gt;&lt;PRE&gt;export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/lib/hive/lib/*&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;PRE&gt;source ~/.bash_profile&lt;/PRE&gt;&lt;P&gt;And now it works. Date were&amp;nbsp;imported in Hive!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we can continue our labs with Cloudera 5!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 15:25:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-quot-Make-sure-HIVE-CONF-DIR-is-set-correctly/m-p/37865#M19335</guid>
      <dc:creator>fmorcamp</dc:creator>
      <dc:date>2016-02-25T15:25:16Z</dc:date>
    </item>
  </channel>
</rss>

