Skip to content

Instantly share code, notes, and snippets.

@yht
Created November 16, 2016 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yht/646a976549c1ff8e5afc67a0ea933319 to your computer and use it in GitHub Desktop.
Save yht/646a976549c1ff8e5afc67a0ea933319 to your computer and use it in GitHub Desktop.
ImpalaODBC Pre-Load
#!/bin/bash
# /etc/profile.d/
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libodbcinst.so
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/odbc
export ODBCINI=$HOME/.odbc.ini
export ODBCSYSINI=/etc
export CLOUDERAIMPALAINI=/opt/cloudera/impalaodbc/lib/64/cloudera.impalaodbc.ini
# /etc/
[ODBC Drivers]
Cloudera Impala ODBC Driver 64-bit=Installed
[Cloudera Impala ODBC Driver 64-bit]
Description=Cloudera Impala ODBC Driver (64-bit)
Driver=/opt/cloudera/impalaodbc/lib/64/libclouderaimpalaodbc64.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment