FAQ
Thanks Jonathan for the replay,

I tried with Connection URL as :"jdbc:odbc:IMPALA-SERVER"

but I am getting an exception:

java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
at java.sql.DriverManager.getConnection(DriverManager.java:582)

What could be the issue.?

--

Search Discussions

  • Wayne Wheeles at Dec 10, 2012 at 12:58 pm
    This snippet worked for me

    // Code Snippet Connection Example Java connecting to Impala
    //----------------------------------------------------------------------------//
    private static Connection getConnection() throws Exception {
    Driver d;
    d = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    String url = "jdbc.odbc.sherpa";
    String username = "";
    String password = "";

    Connection c = DriverManager.getConnection("jdbc:odbc:Sherpa");
    return c;
    }
    //---------------------------------------------------------------------------//




    On Monday, December 10, 2012 7:06:53 AM UTC-5, sachin jose wrote:

    Thanks Jonathan for the replay,

    I tried with Connection URL as :"jdbc:odbc:IMPALA-SERVER"

    but I am getting an exception:

    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)

    What could be the issue.?
    --
  • Y-Hain Chang at Jan 21, 2013 at 1:45 am
    hi sachin,
    I meet the same issue,I get the following error
    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)

    Have you sloved the issue?
    thanks!
    On Monday, December 10, 2012 8:06:53 PM UTC+8, sachin jose wrote:

    Thanks Jonathan for the replay,

    I tried with Connection URL as :"jdbc:odbc:IMPALA-SERVER"

    but I am getting an exception:

    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)

    What could be the issue.?
    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupimpala-user @
categorieshadoop
postedDec 10, '12 at 12:06p
activeJan 21, '13 at 1:45a
posts3
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase