Member since
04-06-2017
1
Post
0
Kudos Received
0
Solutions
04-07-2017
05:13 AM
I am getting this error while executing your code, could you please let me know if there is some other setup which is required to run this code: ['beeline', '-u', "'jdbc:hive2://<servername>:10000/;ssl=true;", '--fastConnect=true', '--showHeader=false', '--verbose=false', '--showWarnings=false', '--silent=true', '--outputFormat=csv2', '-e', 'use tsz;', '-e', 'show tables;']
No known driver to handle "'jdbc:hive2://<servername>:10000/;ssl=true;"
No current connection
No current connection
Traceback (most recent call last):
File "./CheckReconErrors.py", line 53, in <module>
tables=beeline.show_tables()
File "./CheckReconErrors.py", line 39, in show_tables
return self._run_cmd(cmd)
File "./CheckReconErrors.py", line 44, in _run_cmd
stdout = subprocess.check_call(cmd)
File "/usr/lib64/python2.6/subprocess.py", line 505, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['beeline', '-u', "'jdbc:hive2://<servername>:10000/;ssl=true;", '--fastConnect=true', '--showHeader=false', '--verbose=false', '--showWarnings=false', '--silent=true', '--outputFormat=csv2', '-e', 'use tsz;', '-e', 'show tables;']' returned non-zero exit status 2
... View more