分享

hue无法与yarn绑定

hello-world 发表于 2017-9-26 20:04:23 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 7880
[[yarn_clusters]]

    [[[default]]]
      # Enter the host on which you are running the ResourceManager
      #resourcemanager_host=maprfs:///

      # The port where the ResourceManager IPC listens on
      #resourcemanager_port=8032

      # Whether to submit jobs to this cluster
      #submit_to=True

      # Resource Manager logical name (required for HA)
      #logical_name=rm1

      # Change this if your YARN cluster is Kerberos-secured
      ## security_enabled=false

      # URL of the ResourceManager API
      #resourcemanager_api_url=http://hadoop1:8088

      # URL of the ProxyServer API
      #proxy_api_url=http://hadoop1:8088

      # URL of the HistoryServer API
      #history_server_api_url=http://hadoop1:19888

      # URL of the Spark History Server
      ## spark_history_server_url=http://localhost:18088

      # In secure mode (HTTPS), if SSL certificates from YARN Rest APIs
      # have to be verified against certificate authority
      ## ssl_cert_ca_verify=True

    # HA support by specifying multiple clusters.
    # Redefine different properties there.
    # e.g.

    # [[[ha]]]
      # Resource Manager logical name (required for HA)
      #logical_name=rm2

      # Un-comment to enable
      #submit_to=True
       # URL of the ResourceManager API
      #resourcemanager_api_url=http://hadoop2:8088

       # URL of the ProxyServer API
      #proxy_api_url=http://hadoop2:8088

      # URL of the HistoryServer API
      #history_server_api_url=http://hadoop2:19888

怎么设置这些参数,取消注释之后hue取法启动,报错如下
Traceback (most recent call last):
  File "/opt/hue-3.9.0/build/env/bin/hue", line 9, in <module>
    load_entry_point('desktop==3.9.0', 'console_scripts', 'hue')()
  File "/opt/hue-3.9.0/desktop/core/src/desktop/manage_entry.py", line 59, in entry
    execute_from_command_line(sys.argv)
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 261, in fetch_command
    commands = get_commands()
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 107, in get_commands
    apps = settings.INSTALLED_APPS
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 54, in __getattr__
    self._setup(name)
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 49, in _setup
    self._wrapped = Settings(settings_module)
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 128, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/opt/hue-3.9.0/desktop/core/src/desktop/settings.py", line 250, in <module>
    conf.initialize(_desktop_conf_modules, _config_dir)
  File "/opt/hue-3.9.0/desktop/core/src/desktop/lib/conf.py", line 591, in initialize
    conf_data = load_confs(_configs_from_dir(config_dir))
  File "/opt/hue-3.9.0/desktop/core/src/desktop/lib/conf.py", line 523, in load_confs
    for in_conf in conf_source:
  File "/opt/hue-3.9.0/desktop/core/src/desktop/lib/conf.py", line 504, in _configs_from_dir
    conf = configobj.ConfigObj(os.path.join(conf_dir, filename))
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/configobj-4.6.0-py2.7.egg/configobj.py", line 1219, in __init__
    self._load(infile, configspec)
  File "/opt/hue-3.9.0/build/env/lib/python2.7/site-packages/configobj-4.6.0-py2.7.egg/configobj.py", line 1302, in _load
    raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 906.

求大神解答                                            

已有(3)人评论

跳转到指定楼层
nextuser 发表于 2017-9-26 20:41:04
只看到取消了标签,没有看到任何配置。
对于配置建议参考一些标准的文档。如下面
[mw_shl_code=bash,true]# Enter the host on which you are running the ResourceManager
resourcemanager_host=xx.com

# The port where the ResourceManager IPC listens on
resourcemanager_port=8032

# Whether to submit jobs to this cluster
submit_to=True

# URL of the ResourceManager API
resourcemanager_api_url=http://xx.com:8088

# URL of the ProxyServer API
proxy_api_url=http://xx.com:8088

# URL of the HistoryServer API
history_server_api_url=http://xx.com:19888[/mw_shl_code]
回复

使用道具 举报

hello-world 发表于 2017-9-27 14:36:53
[[yarn_clusters]]

    [[[default]]]
      resourcemanager_host=maprfs:///

      resourcemanager_port=8032

      submit_to=True

      logical_name=rm1

      resourcemanager_api_url=http://hadoop1:8088

      proxy_api_url=http://hadoop1:8088

      history_server_api_url=http://hadoop1:19888

    # [[[ha]]]

      logical_name=rm2

      submit_to=True

      resourcemanager_api_url=http://hadoop2:8088

      proxy_api_url=http://hadoop2:8088

      history_server_api_url=http://hadoop2:19888
回复

使用道具 举报

hello-world 发表于 2017-9-27 14:38:46
[[yarn_clusters]]

    [[[default]]]
      resourcemanager_host=maprfs:///

      resourcemanager_port=8032

      submit_to=True

      logical_name=rm1

      resourcemanager_api_url=http://hadoop1:8088

      proxy_api_url=http://hadoop1:8088

      history_server_api_url=http://hadoop1:19888

    # [[[ha]]]

      logical_name=rm2

      submit_to=True

      resourcemanager_api_url=http://hadoop2:8088

      proxy_api_url=http://hadoop2:8088

      history_server_api_url=http://hadoop2:19888
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条