<?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: Sqoop UnknownHostException when using HA namenode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-UnknownHostException-when-using-HA-namenode/m-p/133543#M34971</link>
    <description>&lt;P&gt;Just to give an update,&lt;/P&gt;&lt;P&gt;we found that this issue was related to a problem with kitesdk v1.0.0 properly reading the client config.&lt;/P&gt;&lt;P&gt;See:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/KITE-976"&gt;https://issues.cloudera.org/browse/KITE-976&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/KITE-1090"&gt;https://issues.cloudera.org/browse/KITE-1090&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Our fix was to replace the following kitesdk v1.0.0 jars in sqoop/lib with the v1.1.0 versions:&lt;/P&gt;&lt;P&gt;kite-data-core-1.1.0.jar&lt;/P&gt;&lt;P&gt;kite-data-hive-1.1.0.jar&lt;/P&gt;&lt;P&gt;kite-data-mapreduce-1.1.0.jar&lt;/P&gt;&lt;P&gt;kite-hadoop-compatibility-1.1.0.jar&lt;/P&gt;&lt;P&gt;This resolved the UnknownHostException.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 20:04:28 GMT</pubDate>
    <dc:creator>owen_matthews</dc:creator>
    <dc:date>2016-07-20T20:04:28Z</dc:date>
    <item>
      <title>Sqoop UnknownHostException when using HA namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-UnknownHostException-when-using-HA-namenode/m-p/133542#M34970</link>
      <description>&lt;P&gt;
We're getting an UnknownHostException when running Sqoop.&lt;/P&gt;&lt;P&gt;The job gets submitted successfully to the cluster, but then fails almost immediately.
In the job history logs, we can see the exception stack trace below.&lt;/P&gt;&lt;P&gt;Background details: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;client OS is RHEL 6.7 &lt;/LI&gt;&lt;LI&gt;Sqoop version is 1.4.6.2.3.2.0-2950 &lt;/LI&gt;&lt;LI&gt;Our cluster is running HDP 2.4.2 &lt;/LI&gt;&lt;LI&gt;Our cluster is configured with an HA namenode, called 'titan'. &lt;/LI&gt;&lt;LI&gt;We're using Kerberos for authentication. &lt;/LI&gt;&lt;LI&gt;We can run other MapReduce and Spark jobs successfully, it is just Sqoop that is failing with this error. &lt;/LI&gt;&lt;LI&gt;We can run this Sqoop job on an older (HDP 2.3.2) cluster successfully (it also uses HA namenode).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Stacktrace:&lt;/P&gt;&lt;P&gt;2016-07-15 16:51:34,762 DEBUG [main] org.apache.hadoop.hdfs.BlockReaderLocal: dfs.client.use.legacy.blockreader.local = false
2016-07-15 16:51:34,762 DEBUG [main] org.apache.hadoop.hdfs.BlockReaderLocal: dfs.client.read.shortcircuit = false
2016-07-15 16:51:34,762 DEBUG [main] org.apache.hadoop.hdfs.BlockReaderLocal: dfs.client.domain.socket.data.traffic = false
2016-07-15 16:51:34,762 DEBUG [main] org.apache.hadoop.hdfs.BlockReaderLocal: dfs.domain.socket.path = 
2016-07-15 16:51:34,807 DEBUG [main] org.apache.hadoop.service.AbstractService: noteFailure org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.IllegalArgumentException: java.net.UnknownHostException: titan
2016-07-15 16:51:34,807 INFO [main] org.apache.hadoop.service.AbstractService: Service org.apache.hadoop.mapreduce.v2.app.MRAppMaster failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.IllegalArgumentException: java.net.UnknownHostException: titan
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.IllegalArgumentException: java.net.UnknownHostException: titan
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$2.call(MRAppMaster.java:519)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$2.call(MRAppMaster.java:499)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.callWithJobClassLoader(MRAppMaster.java:1598)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.createOutputCommitter(MRAppMaster.java:499)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.serviceInit(MRAppMaster.java:285)
   at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$5.run(MRAppMaster.java:1556)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.Subject.doAs(Subject.java:422)
   at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1709)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.initAndStartAppMaster(MRAppMaster.java:1553)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.main(MRAppMaster.java:1486)
Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: titan
   at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:411)
   at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:311)
   at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
   at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:678)
   at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:619)
   at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:150)
   at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
   at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
   at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
   at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
   at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
   at org.kitesdk.data.spi.filesystem.Loader$URIBuilder.getFromOptions(Loader.java:66)
   at org.kitesdk.data.spi.filesystem.Loader$URIBuilder.getFromOptions(Loader.java:50)
   at org.kitesdk.data.spi.Registration.lookupDatasetUri(Registration.java:106)
   at org.kitesdk.data.Datasets.load(Datasets.java:103)
   at org.kitesdk.data.Datasets.load(Datasets.java:165)
   at org.kitesdk.data.mapreduce.DatasetKeyOutputFormat.load(DatasetKeyOutputFormat.java:510)
   at org.kitesdk.data.mapreduce.DatasetKeyOutputFormat.getOutputCommitter(DatasetKeyOutputFormat.java:473)
   at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$2.call(MRAppMaster.java:517)
   ... 11 more
Caused by: java.net.UnknownHostException: titan
   ... 30 more
2016-07-15 16:51:34,808 DEBUG [main] org.apache.hadoop.service.AbstractService: Service: org.apache.hadoop.mapreduce.v2.app.MRAppMaster entered state STOPPED
2016-07-15 16:51:34,808 DEBUG [main] org.apache.hadoop.service.CompositeService: org.apache.hadoop.mapreduce.v2.app.MRAppMaster: stopping services, size=0&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 21:34:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-UnknownHostException-when-using-HA-namenode/m-p/133542#M34970</guid>
      <dc:creator>owen_matthews</dc:creator>
      <dc:date>2016-07-18T21:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop UnknownHostException when using HA namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-UnknownHostException-when-using-HA-namenode/m-p/133543#M34971</link>
      <description>&lt;P&gt;Just to give an update,&lt;/P&gt;&lt;P&gt;we found that this issue was related to a problem with kitesdk v1.0.0 properly reading the client config.&lt;/P&gt;&lt;P&gt;See:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/KITE-976"&gt;https://issues.cloudera.org/browse/KITE-976&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/KITE-1090"&gt;https://issues.cloudera.org/browse/KITE-1090&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Our fix was to replace the following kitesdk v1.0.0 jars in sqoop/lib with the v1.1.0 versions:&lt;/P&gt;&lt;P&gt;kite-data-core-1.1.0.jar&lt;/P&gt;&lt;P&gt;kite-data-hive-1.1.0.jar&lt;/P&gt;&lt;P&gt;kite-data-mapreduce-1.1.0.jar&lt;/P&gt;&lt;P&gt;kite-hadoop-compatibility-1.1.0.jar&lt;/P&gt;&lt;P&gt;This resolved the UnknownHostException.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 20:04:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-UnknownHostException-when-using-HA-namenode/m-p/133543#M34971</guid>
      <dc:creator>owen_matthews</dc:creator>
      <dc:date>2016-07-20T20:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop UnknownHostException when using HA namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-UnknownHostException-when-using-HA-namenode/m-p/133544#M34972</link>
      <description>&lt;P&gt;Hi @Owen,&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;This has been patched in the HDP 2.5.3 release.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_release-notes/content/fixed_issues.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_release-notes/content/fixed_issues.html&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;BUG-65983&lt;/TD&gt;&lt;TD&gt;N/A&lt;/TD&gt;&lt;TD&gt;Increase the kite sdk version to 1.1 for fixing Sqoop parquet support issues
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;@Darwin&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:49:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-UnknownHostException-when-using-HA-namenode/m-p/133544#M34972</guid>
      <dc:creator>dtraver</dc:creator>
      <dc:date>2017-02-21T21:49:25Z</dc:date>
    </item>
  </channel>
</rss>

