Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Sqoop, mail # dev - Adding jar to war


Copy link to this message
-
Adding jar to war
vasanth kumar 2013-02-15, 13:53
Hi,

I was trying sqoop2 install with Hadoop 2.0 "hadoop-2.0.2-alpha-src.tar.gz"
binary-source package.
After sqoop2 build, executed addtowar.sh command. Script added *
hadoop-common-2.0.2-alpha-sources.jar* instead of *
hadoop-common-2.0.2-alpha.jar*, both jars are in same folder. Then got few
exception while adding starting jars. Later I added binary jar manually and
working fine.

Command execution
---------------------------------------------------------------------------------------------------
hadoop-path /usr/lib/hadoop2/
Hadoop version: 2.0
Hadoop path: /usr/lib/hadoop2/
Extra jars:

Injecting following Hadoop JARs

/usr/lib/hadoop2/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.0.2-alpha.jar
/usr/lib/hadoop2/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.0.2-alpha.jar
/usr/lib/hadoop2/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.0.2-alpha.jar
/usr/lib/hadoop2/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.0.2-alpha.jar
/usr/lib/hadoop2/share/hadoop/yarn/hadoop-yarn-common-2.0.2-alpha.jar
/usr/lib/hadoop2/share/hadoop/yarn/hadoop-yarn-api-2.0.2-alpha.jar
/usr/lib/hadoop2/share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/hadoop-hdfs-2.0.2-alpha.jar
*/usr/lib/hadoop2/share/hadoop/common/hadoop-common-2.0.2-alpha-sources.jar*
/usr/lib/hadoop2/share/hadoop/common/lib/hadoop-auth-2.0.2-alpha.jar
/usr/lib/hadoop2/share/hadoop/common/lib/guava-11.0.2.jar
/usr/lib/hadoop2/share/hadoop/common/lib/protobuf-java-2.4.0a.jar
/usr/lib/hadoop2/share/hadoop/common/lib/jackson-core-asl-1.8.8.jar
/usr/lib/hadoop2/share/hadoop/common/lib/jackson-mapper-asl-1.8.8.jar
/usr/lib/hadoop2/share/hadoop/common/lib/commons-configuration-1.6.jar
/usr/lib/hadoop2/share/hadoop/common/lib/commons-cli-1.2.jar
/usr/lib/hadoop2/share/hadoop/common/lib/commons-logging-1.1.1.jar
/usr/lib/hadoop2/share/hadoop/common/lib/slf4j-api-1.6.1.jar
/usr/lib/hadoop2/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar
/usr/lib/hadoop2/share/hadoop/common/lib/avro-1.5.3.jar

Backing up original WAR file to
./../server/webapps/sqoop.war_2013-02-15_19:20:06.784011030

New Sqoop WAR file with added 'Hadoop JARs' at ./../server/webapps/sqoop.war

---------------------------------------------------------------------------------------------------
Is it defect or I should use only hadoop 2.0 binary version only?

--
Regards
Vasanth kumar RJ
+
Jarek Jarcec Cecho 2013-02-15, 16:13