We have sas 9.4 on linux with sas/access to impala + sas/access to hadoop
+
we have cloudera impala odbc driver - 2.5.37 version installed
+
we have ODBCINI env. variable set up for all which is pointing to user based odbcini at individual user's home directory,
scenario1
when we run below libname statement in interactive mode (sas -nodms) job ran fine either with read only permission OR read+write permission for odbcini file for any user.
scenario2
when we run job in batch mode with read only permission for odbcini file - we receive below error
LIBNAME hdp impala dsn=xxx schema=xxx user=xxx pw="xxx" ;
ERROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
ERROR: Error in the LIBNAME statement.
however, when we run same test with read+write permission for odbcini file, job runs fine.
when we asked cloudera team, they said it should be matter matter what permission odbcini file has.
anyone came across same issue before?
1- Does the test with read only permission for odbcini file work from ODBC manager?
2- Does this work?
LIBNAME hdp impala dsn=xxx schema=xxx user=xxx pw="xxx" access=readonly;
Thank you for your note Chris,
didn't understand your first question, have different scenarios so far,
odbcini file with read only mode + odbcini env. variable assigned centrally (/etc/profile -> pointing to user's home dir odbcini file) - interactive mode (./sas -nodms) -> job run fine
odbcini file with read only mode + odbcini env. variable assigned centrally + assign odbcini env. variable explicitely into user's home dir odbcini file - interactive mode (./sas -nodms) -> job failed
odbcini file with read only mode + odbcini env. variable assigned centrally + batch mode (sas job_name.sas) -> job failed
odbcini file with read only mode + odbcini env. variable assigned centrally + assign odbcini env. variable explicitely into user's home dir odbcini file - batch mode (sas job_name.sas) -> job run fine
Also -> job failed with your option#2 (access=readonly) with cli error.
The important bit was at the end:
Does the test with read only permission for odbcini file work from ODBC manager?
Not from SAS. There is a "test" button in ODBC manager to test connections.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.