HBase
  1. HBase
  2. HBASE-5994

Document and add to TableMapReduceUtil setup if security is enabled

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If secure RPC is enabled, then users must enable the TokenProvider coprocessor. They also must acquire a job token and add it to the job configuration, by way of something like:

      if (User.isHBaseSecurityEnabled()) try {
        User.getCurrent().obtainAuthTokenForJob(conf, job);
      } catch (InterruptedException ie) {
        Thread.interrupted();
      }
      

      TableMapReduceUtil will do this automatically.

      Add some detail about this to the manual.

        Issue Links

          Activity

          Andrew Purtell created issue -
          Andrew Purtell made changes -
          Field Original Value New Value
          Description If secure RPC is enabled, then users must enable the TokenProvider coprocessor. They also must acquire a job token and add it to the job configuration, by way of something like:

          {code}
          if (User.isSecurityEnabled()) try {
            User.getCurrent().obtainAuthTokenForJob(conf, job);
          } catch (InterruptedException ie) {
            Thread.interrupted();
          }
          {code}

          Add this to the manual and update TableMapReduceUtil.
          If secure RPC is enabled, then users must enable the TokenProvider coprocessor. They also must acquire a job token and add it to the job configuration, by way of something like:

          {code}
          if (User.isHBaseSecurityEnabled()) try {
            User.getCurrent().obtainAuthTokenForJob(conf, job);
          } catch (InterruptedException ie) {
            Thread.interrupted();
          }
          {code}

          TableMapReduceUtil will do this automatically.

          Add some detail about this to the manual.
          Andrew Purtell made changes -
          Link This issue is related to HBASE-6096 [ HBASE-6096 ]
          Andrew Purtell made changes -
          Link This issue is part of HBASE-6106 [ HBASE-6106 ]
          Andrew Purtell made changes -
          Assignee Andrew Purtell [ apurtell ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrew Purtell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development