Skip to content

Why does RImpala.java use "hive" connectors? #11

Description

@lucacerone

Hi, I am sure this is not a proper bug because everything works fine.

I have a few curiosities about the code though. In RImpala.java you use
JDBC_DRIVER_NAME = "org.apache.hive.jdbc.HiveDriver";
and also you build the connection url as:
CONNECTION_URL = "jdbc:hive2://" + IP + ':' + port + "/;" + principal;

I wonder why you use Hive drivers and Hive2 protocol.

Reading at the documentation I had the impression one should use Impala drivers like:
com.cloudera.impala.jdbc3.Driver

and build the string using jdbc:impala//etc_etc

Am I missing something here?

Also I have a small suggestion: why don't you put the relevant .jar files in a folder "jars" in the inst directory (http://r-pkgs.had.co.nz/inst.html) and have rimpala.init() default to
file.path(system.file(package = "RImpala"),"jars")?

This way the user does not have to worry to install the jars and can still change them should she want to use a different location!

Anyway, thanks a lot for the great package!

Cheers,
Luca

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions