<?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 connection to Oracle from Sandbox gives error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184442#M58782</link>
    <description>&lt;P&gt;Thank you Jay, it is actually listening on different network interface. Thank you very much.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2017 00:49:26 GMT</pubDate>
    <dc:creator>dcvenkat</dc:creator>
    <dc:date>2017-04-03T00:49:26Z</dc:date>
    <item>
      <title>Sqoop connection to Oracle from Sandbox gives error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184437#M58777</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have installed HDP 2.5 virtual sandbox and was able to run HDFS commans and create some hive tables. &lt;/P&gt;&lt;P&gt;I'm now trying to connect to oracle database and sqoop some tables. I have done the prepreq steps like bringing in ojdbc jar and placing in the lib directory.&lt;/P&gt;&lt;P&gt;My Oracle XE edition database is running on my localhost and Hadoop as you are aware on vitual machine. I'm trying to run the below command but throws the following error:&lt;/P&gt;&lt;P&gt;sqoop list-tables --connect jdbc:oracle:thin@127.0.0.1:1521/xe --username hr --password xxxxx&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Please set $ACCUMULO_HOME to the root of your Accumulo installation.
17/04/01 18:09:36 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.5.0.0-1245
17/04/01 18:09:37 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
17/04/01 18:09:37 INFO oracle.OraOopManagerFactory: Data Connector for Oracle and Hadoop is disabled.
17/04/01 18:09:37 INFO manager.SqlManager: Using default fetchSize of 1000
17/04/01 18:09:37 &lt;STRONG&gt;ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
&lt;/STRONG&gt;java.lang.NullPointerException
        at org.apache.sqoop.manager.OracleManager.listTables(OracleManager.java:760)
        at org.apache.sqoop.tool.ListTablesTool.run(ListTablesTool.java:49)
        at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:225)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
        at org.apache.sqoop.Sqoop.main(Sqoop.java:243)&lt;/P&gt;&lt;P&gt;Can someone please help me if I'm missing any additional configuration.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 01:19:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184437#M58777</guid>
      <dc:creator>dcvenkat</dc:creator>
      <dc:date>2017-04-02T01:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop connection to Oracle from Sandbox gives error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184438#M58778</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16934/dcvenkat.html" nodeid="16934"&gt;@venkat dukkipati&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sometimes this NullPointerException occurs when the DB instance host/port are not accessible.&lt;/P&gt;&lt;P&gt;So can you please check if the Oracle instance is listening to the same port?&lt;/P&gt;&lt;PRE&gt;# telnet 127.0.0.1 1521
OR
# netstat -tnlpa | grep 1521&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also try passing the oracle jdbc driver class name as argument to sqoop command:&lt;/P&gt;&lt;PRE&gt;--driver oracle.jdbc.OracleDriver 
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 01:22:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184438#M58778</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-02T01:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop connection to Oracle from Sandbox gives error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184439#M58779</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16934/dcvenkat.html" nodeid="16934"&gt;@venkat dukkipati&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also in your connection URL there is a ":"  symbol missing after &lt;STRONG&gt;"jdbc:oracle:thin"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Correct URL as following:
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt; --connect jdbc:oracle:thin:@127.0.0.1:1521/xe&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 01:30:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184439#M58779</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-02T01:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop connection to Oracle from Sandbox gives error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184440#M58780</link>
      <description>&lt;P&gt;Hi Sensharma,&lt;/P&gt;&lt;P&gt;Thank you for replying, I tried telnet from virtual box it throwed below error:&lt;/P&gt;&lt;P&gt;[root@sandbox ml-100k]# telnet 127.0.0.1 1521
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused&lt;/P&gt;&lt;P&gt;as my Oracle xe is on local host but Im trying to connect through sqoop from my virtual machine, I;m wondering if I have to do any additional configuration.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 04:20:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184440#M58780</guid>
      <dc:creator>dcvenkat</dc:creator>
      <dc:date>2017-04-02T04:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop connection to Oracle from Sandbox gives error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184441#M58781</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/16934/dcvenkat.html" nodeid="16934"&gt;@venkat dukkipati&lt;/A&gt;&lt;P&gt;As you are not able to connect to port 1521 (even using telnet)&lt;/P&gt;&lt;P&gt;So i am suspecting either your Oracle instance is not listening on this port or it might be bound to some other network interface apart from 127.0.0.1.  &lt;/P&gt;&lt;P&gt;Please check oracle logs to make sure you are able to connect to it.   &lt;/P&gt;&lt;P&gt;List the ports opened by Oracle Process to see if port 1521 is opened or not?&lt;/P&gt;&lt;PRE&gt;# netstat -tnlpa | grep $ORACLE_PID
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 10:32:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184441#M58781</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-02T10:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop connection to Oracle from Sandbox gives error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184442#M58782</link>
      <description>&lt;P&gt;Thank you Jay, it is actually listening on different network interface. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 00:49:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-connection-to-Oracle-from-Sandbox-gives-error/m-p/184442#M58782</guid>
      <dc:creator>dcvenkat</dc:creator>
      <dc:date>2017-04-03T00:49:26Z</dc:date>
    </item>
  </channel>
</rss>

