Member since
01-20-2017
8
Posts
1
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
01-20-2017
06:53 PM
1 Kudo
@Neil Watson You can with following REST API call curl -u admin:admin -H 'X-Requested-By:admin' -X PUT '<a href="http://localhost:8080/api/v1/clusters/cc'">http://localhost:8080/api/v1/clusters/clustername'</a> -d '{ "Clusters": { "desired_service_config_versions": { "service_name" : "HDFS", "service_config_version" : 1, "service_config_version_note" : "REST API rollback to service config version 1 (HDFS)" } } }' In this service_config_version - is the old version you would like to revert to.
... View more