Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1486

Search using post ' "/api/v1/search/search" Throws unauthorized exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • None
    • None

    Description

      Search Controller API "/api/v1/search/search" Throws unauthorized exception, for the below payload

      {
           "indices": [],
           "facetFields":[],
           "query": "*",
           "from": 0,
           "size": 20
           }
      

      Exception is as follows

      {
        "responseCode": 500,
        "message": "org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'metron' (table=user_settings, action=READ)\n\tat org.apache.hadoop.hbase.security.access.AccessController.internalPreRead(AccessController.java:1616)\n\tat org.apache.hadoop.hbase.security.access.AccessController.preGetOp(AccessController.java:1624)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$26.call(RegionCoprocessorHost.java:816)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1660)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1734)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1692)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.preGet(RegionCoprocessorHost.java:812)\n\tat org.apache.hadoop.hbase.regionserver.HRegion.get(HRegion.java:6917)\n\tat org.apache.hadoop.hbase.regionserver.HRegion.get(HRegion.java:6905)\n\tat org.apache.hadoop.hbase.regionserver.RSRpcServices.get(RSRpcServices.java:2026)\n\tat org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32381)\n\tat org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2150)\n\tat org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:112)\n\tat org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:187)\n\tat org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:167)\n",
        "fullMessage": "RemoteWithExtrasException: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'metron' (table=user_settings, action=READ)\n\tat org.apache.hadoop.hbase.security.access.AccessController.internalPreRead(AccessController.java:1616)\n\tat org.apache.hadoop.hbase.security.access.AccessController.preGetOp(AccessController.java:1624)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$26.call(RegionCoprocessorHost.java:816)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1660)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1734)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1692)\n\tat org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.preGet(RegionCoprocessorHost.java:812)\n\tat org.apache.hadoop.hbase.regionserver.HRegion.get(HRegion.java:6917)\n\tat org.apache.hadoop.hbase.regionserver.HRegion.get(HRegion.java:6905)\n\tat org.apache.hadoop.hbase.regionserver.RSRpcServices.get(RSRpcServices.java:2026)\n\tat org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32381)\n\tat org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2150)\n\tat org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:112)\n\tat org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:187)\n\tat org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:167)\n"
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mohandv Mohan Venkateshaiah
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: