apache ranger 2.0.0-snapshot:无法安装和配置hdfs插件

p4rjhz4m  于 2021-06-01  发布在  Hadoop
关注(0)|答案(1)|浏览(585)

我已经为apachehadoop-2.7.7安装了ranger admin和ranger usersync。当我尝试安装相同的RangerHDFS插件时,相同的服务没有在RangerAdminUI(在服务管理器下)上列出。ranger hdfs插件的install.properties文件如下:

POLICY_MGR_URL=http://localhost:6080
    #
    # This is the repository name created within policy manager
    #
    # Example:
    # REPOSITORY_NAME=hadoopdev
    #
    REPOSITORY_NAME=hadoopdev
    #
    # Set hadoop home when hadoop program and Ranger HDFS Plugin are not in the
    # same path.
    #
    COMPONENT_INSTALL_DIR_NAME=

    # AUDIT configuration with V3 properties
    # Enable audit logs to Solr
    #Example
    #XAAUDIT.SOLR.ENABLE=true
    #XAAUDIT.SOLR.URL=http://localhost:6083/solr/ranger_audits
    #XAAUDIT.SOLR.ZOOKEEPER=
    #XAAUDIT.SOLR.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/solr/spool

    XAAUDIT.SOLR.ENABLE=false
    XAAUDIT.SOLR.URL=http://localhost:6083/solr/ranger_audits
    XAAUDIT.SOLR.USER=NONE
    XAAUDIT.SOLR.PASSWORD=NONE
    XAAUDIT.SOLR.ZOOKEEPER=NONE
    XAAUDIT.SOLR.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/solr/spool

    XAAUDIT.HDFS.ENABLE=true
    XAAUDIT.HDFS.HDFS_DIR=hdfs://ubuntu3.dap.com:9000/ranger/audit
    XAAUDIT.HDFS.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/hdfs/spool

    #
    # Custom component user
    # CUSTOM_COMPONENT_USER=<custom-user>
    # keep blank if component user is default
    CUSTOM_USER=hdfs

    #
    # Custom component group
    # CUSTOM_COMPONENT_GROUP=<custom-group>
    # keep blank if component group is default
    CUSTOM_GROUP=hadoop

    XAAUDIT.DB.IS_ENABLED=true
    XAAUDIT.DB.FLAVOUR=MYSQL
    XAAUDIT.DB.HOSTNAME=localhost
    XAAUDIT.DB.DATABASE_NAME=ranger_audit
    XAAUDIT.DB.USER_NAME=rangerlogger
    XAAUDIT.DB.PASSWORD=rangerlogger
k2arahey

k2arahey1#

下面是如何在hdp hadoop发行版中实现这一点。如你所见,有多个步骤,我怀疑你可能跳过了一个。
启用ranger
更新相关配置
重新启动一切
https://docs.hortonworks.com/hdpdocuments/hdp2/hdp-2.6.5/bk_security/content/hdfs_plugin.html

相关问题