Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14366

NPE in case visibility expression is not present in labels table during importtsv run

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.2.0, 1.3.0, 1.0.3, 1.1.3, 0.98.16, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Below exception is shown in logs if visibility expression is not present in labels table during importtsv run. Appropriate exception / message should be logged for the user to take further action.

      WARN [main] org.apache.hadoop.mapred.YarnChild: Exception running child : java.lang.NullPointerException
              at org.apache.hadoop.hbase.mapreduce.DefaultVisibilityExpressionResolver$1.getLabelOrdinal(DefaultVisibilityExpressionResolver.java:127)
              at org.apache.hadoop.hbase.security.visibility.VisibilityUtils.getLabelOrdinals(VisibilityUtils.java:358)
              at org.apache.hadoop.hbase.security.visibility.VisibilityUtils.createVisibilityExpTags(VisibilityUtils.java:323)
              at org.apache.hadoop.hbase.mapreduce.DefaultVisibilityExpressionResolver.createVisibilityExpTags(DefaultVisibilityExpressionResolver.java:137)
              at org.apache.hadoop.hbase.mapreduce.TsvImporterMapper.populatePut(TsvImporterMapper.java:205)
              at org.apache.hadoop.hbase.mapreduce.TsvImporterMapper.map(TsvImporterMapper.java:165)
              at org.apache.hadoop.hbase.mapreduce.TsvImporterMapper.map(TsvImporterMapper.java:1)
              at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:146)
              at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
      

        Attachments

        1. 0001-HBASE-14366_1.patch
          4 kB
          Bhupendra Kumar Jain
        2. 0001-HBASE-14366.patch
          2 kB
          Bhupendra Kumar Jain
        3. HBASE-14366_2.patch
          16 kB
          Bhupendra Kumar Jain
        4. HBASE-14366_2(1).patch
          16 kB
          Bhupendra Kumar Jain
        5. HBASE-14366-0.98.patch
          14 kB
          Bhupendra Kumar Jain
        6. HBASE-14366-branch-1.1_v1.patch
          16 kB
          Bhupendra Kumar Jain
        7. HBASE-14366-branch-1.1.patch
          16 kB
          Bhupendra Kumar Jain
        8. HBASE-14366-branch-1.2_v1.patch
          16 kB
          Bhupendra Kumar Jain
        9. HBASE-14366-branch-1.2.patch
          16 kB
          Bhupendra Kumar Jain
        10. HBASE-14366-branch-1.patch
          16 kB
          Bhupendra Kumar Jain

          Activity

            People

            • Assignee:
              Bhupendra Bhupendra Kumar Jain
              Reporter:
              sreenivasulureddy Y. SREENIVASULU REDDY
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: