Created on 01-20-2015 05:07 PM - edited 09-16-2022 02:19 AM
Hello.
I had a CDH 5.1.3 installation where I was able to use the Sqoop2 client to import data into Hive and HBase. After upgrading to CDH 5.3 I am unable to get neither the Sqoop2 service to start successfully, nor am I able to use the Sqoop2 client. What do I need to do to get this to work as it did before the upgrade?
The errors reported in /var/log/sqoop2/catalna log are as follows:
... ... ...
Jan 20, 2015 4:10:54 PM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'HTML/BODY'.
Jan 20, 2015 4:10:54 PM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'HTML'.
Jan 20, 2015 4:10:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 59 ms
Jan 20, 2015 4:10:54 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.
And, the Sqoop2 client throws an exception, and following is the output it displays:
15/01/20 19:58:13 FATAL conf.Configuration: error parsing conf core-default.xml
javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2375)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2337)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2254)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:861)
at org.apache.sqoop.tool.SqoopTool.loadPluginsFromConfDir(SqoopTool.java:170)
at org.apache.sqoop.tool.SqoopTool.loadPlugins(SqoopTool.java:140)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:208)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
Exception in thread "main" java.lang.RuntimeException: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2493)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2337)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2254)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:861)
at org.apache.sqoop.tool.SqoopTool.loadPluginsFromConfDir(SqoopTool.java:170)
at org.apache.sqoop.tool.SqoopTool.loadPlugins(SqoopTool.java:140)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:208)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2375)
... 8 more
Created 01-29-2015 07:26 AM
For anyone else who may experience this:
The cause was a HSQLDB jar file present on the server outside of CDH installation and which was installed as part of another software. Removing this Jar file allowed Sqoop to import files from Sql Server (and MySql also). So problem solved.
Created 01-30-2015 02:27 AM
Created 01-30-2015 02:57 AM
Not exactly same but I had similar installation issue with Sqoop2. In my case I had to reinstall the OS and get past the issue. It was the most time saving solution for me after spending good amount of time trying to analyze the problem.
Created 01-30-2015 03:08 AM
Created 03-17-2015 06:32 AM
I've upgraded CDH from 5.2.1 to 5.3.2 and got the same errors as in the first message. Sqoop2 service could not be started.
After several hours of investigations I've found out that new sqoop2 is not compatible with xercesImpl.jar from libxerces2-java (Debian Wheezy). It cannot be removed because other packages depend on it.
The workaround is to remove /usr/share/java/*.jar from common.loader=... in /var/lib/sqoop2/tomcat-deployment/conf/catalina.properties.
Created on 02-13-2017 12:17 AM - edited 02-13-2017 12:19 AM
Many Thanks, it worked for me!
I followed Yugune's reply.
The workaround is to remove /usr/share/java/*.jar from common.loader=... in /var/lib/sqoop2/tomcat-deployment/conf/catalina.properties.
Created 05-04-2016 12:13 PM