Closed bedantaguru closed 8 years ago
We don't try the CDH, but I have some ideas. IMHO, the ant could not find hadoop and hive related jars(hadoop-commons-2.6.0.jar
, etc).
In the build.xml
, there are codes for classpath like this:
<path id="classpath">
<fileset dir="./" includes="**/*.jar"/>
<fileset dir="${lib.dir}" includes="*.jar"/>
<fileset dir="${env.HADOOP_HOME}" includes="**/*.jar"/>
<fileset dir="${env.HIVE_HOME}/lib/" includes="**/*.jar"/>
</path>
You can fix or add necessary CDH dirs. In the example, ranger
branch build under the apache bigtop
dist.
Hope your success! Thanks.
Wow thanks a lot for quick reply. I'm able to build it now.
Here is what I modified
<path id="classpath">
<fileset dir="./" includes="**/*.jar"/>
<fileset dir="${lib.dir}" includes="*.jar"/>
<fileset dir="${env.HADOOP_HOME}" includes="**/*.jar"/>
<fileset dir="${env.HIVE_HOME}/lib/" includes="**/*.jar"/>
<fileset dir="/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/" includes="**/*.jar"/>
</path>
Thanks a lot. Now I'll test it.
Ant build failed.
My setup Hadoop 2.6.0-cdh5.4.2 Cloudera 5.4.2 Hive 1.1.0-cdh5.4.2
Does RHive support these setup?