Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2068

Fix ranger.plugin.hbase.policy.rest.ssl.config.file parameter error.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: master, 1.1.0, 1.0.1
    • Fix Version/s: master, 1.1.0, 1.0.1
    • Component/s: plugins
    • Labels:
    • Flags:
      Patch

      Description

      1. Set configuration items.
      COMPONENT_INSTALL_DIR_NAME=/usr/local/hbase
      POLICY_MGR_URL=https://sslrangerserver:6182
      2. Install hbase plugin.
      3. Execute 'hbase-daemon.sh start master' command.
      error log:
      2018-04-12 08:38:47,495 ERROR [sslmaster:16000.activeMasterManager] util.PolicyRefresher: PolicyRefresher(serviceName=hbasedev): failed to refresh policies. Will continue to use last known version of policies (-1)
      com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Unexpected end of file from server
      at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
      at com.sun.jersey.api.client.Client.handle(Client.java:648)
      at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
      at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
      at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:503)
      at org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdated(RangerAdminRESTClient.java:131)
      at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:264)
      at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:202)
      at org.apache.ranger.plugin.util.PolicyRefresher.startRefresher(PolicyRefresher.java:149)
      at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:170)
      at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.start(RangerAuthorizationCoprocessor.java:1032)
      at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.start(RangerAuthorizationCoprocessor.java:1072)
      at org.apache.hadoop.hbase.coprocessor.CoprocessorHost$Environment.startup(CoprocessorHost.java:414)
      at org.apache.hadoop.hbase.coprocessor.CoprocessorHost.loadInstance(CoprocessorHost.java:255)
      at org.apache.hadoop.hbase.coprocessor.CoprocessorHost.loadSystemCoprocessors(CoprocessorHost.java:161)
      at org.apache.hadoop.hbase.master.MasterCoprocessorHost.<init>(MasterCoprocessorHost.java:87)
      at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:721)
      at org.apache.hadoop.hbase.master.HMaster.access$600(HMaster.java:189)
      at org.apache.hadoop.hbase.master.HMaster$2.run(HMaster.java:1803)
      at java.lang.Thread.run(Thread.java:748)

      4. error reason: the ranger.plugin.hbase.policy.rest.ssl.config.file was set to /etc/hbase/conf/ranger-policymgr-ssl.xml. But the ranger-policymgr-ssl.xml file is located under the /usr/local/hbase/conf path.

        Attachments

          Activity

            People

            • Assignee:
              zhangqiang2 Qiang Zhang
              Reporter:
              zhangqiang2 Qiang Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: