Support Questions

Find answers, ask questions, and share your expertise

HiveServer2 not starting up - httplib.InvalidURL: nonnumeric port: '6080 }}'

avatar
Expert Contributor

Hi - i've a HDP2.5 cluster, and HiveServer2 is not starting up.

Error is as shown below, any ideas on this ?

--------------------------------

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py", line 211, in <module>
    HiveServer().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py", line 87, in start
    setup_ranger_hive(upgrade_type=upgrade_type)
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py", line 79, in setup_ranger_hive
    component_user_keytab=params.hive_server2_keytab if params.security_enabled else None)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/setup_ranger_plugin_xml.py", line 82, in setup_ranger_plugin
    policy_user,is_security_enabled,is_stack_supports_ranger_kerberos,component_user,component_user_principal,component_user_keytab)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/ranger_functions_v2.py", line 106, in create_ranger_repository
    response_code = self.check_ranger_login_urllib2(self.base_url)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/decorator.py", line 82, in wrapper
    return function(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/ranger_functions_v2.py", line 208, in check_ranger_login_urllib2
    response = openurl(url, timeout=20)
  File "/usr/lib/python2.6/site-packages/ambari_commons/inet_utils.py", line 40, in openurl
    return urllib2.urlopen(url, timeout=timeout, *args, **kwargs)
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib64/python2.7/urllib2.py", line 1183, in do_open
    h = http_class(host, timeout=req.timeout, **http_conn_args)
  File "/usr/lib64/python2.7/httplib.py", line 739, in __init__
    self._set_hostport(host, port)
  File "/usr/lib64/python2.7/httplib.py", line 767, in _set_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: '6080 }}'

---------------------------------

Attaching the stderr & stdout

1 ACCEPTED SOLUTION

avatar
Expert Contributor

this is fixed, the issue was - ranger url was mal-formed.

View solution in original post

1 REPLY 1

avatar
Expert Contributor

this is fixed, the issue was - ranger url was mal-formed.