Skip to content

Commit

Permalink
More work on Thrift example in secure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgeorge committed Jul 9, 2017
1 parent 5540c4c commit b92ee87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ch13/src/main/java/thrift/SecureThriftExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ private void run() throws Exception {

client.createTable(ByteBuffer.wrap(TABLE), columns);

/*
ArrayList<Mutation> mutations = new ArrayList<Mutation>();
mutations.add(new Mutation(false, ByteBuffer.wrap(COLUMN),
ByteBuffer.wrap(VALUE), true));
Expand Down Expand Up @@ -138,7 +137,7 @@ private void run() throws Exception {
}
}
client.scannerClose(scannerId);
*/

System.out.println("Done.");
saslTransport.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,18 @@
<name>hbase.thrift.kerberos.principal</name>
<value>hbase-thrift/_HOST@{{ KRB_REALM }}</value>
</property>
<!-- Impersonation -->
<property>
<name>hadoop.proxyuser.hbase-thrift.groups</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hbase-thrift.hosts</name>
<value>*</value>
</property>
<property>
<name>hbase.thrift.support.proxyuser</name>
<value>true</value>
</property>
{% endif %}
</configuration>

0 comments on commit b92ee87

Please sign in to comment.