http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/devapidocs/src-html/org/apache/hadoop/hbase/security/token/TokenUtil.html ---------------------------------------------------------------------- diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/security/token/TokenUtil.html b/devapidocs/src-html/org/apache/hadoop/hbase/security/token/TokenUtil.html index 8dcb015..052f33b 100644 --- a/devapidocs/src-html/org/apache/hadoop/hbase/security/token/TokenUtil.html +++ b/devapidocs/src-html/org/apache/hadoop/hbase/security/token/TokenUtil.html @@ -34,21 +34,21 @@ <span class="sourceLineNo">026</span>import com.google.protobuf.ServiceException;<a name="line.26"></a> <span class="sourceLineNo">027</span><a name="line.27"></a> <span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.zookeeper.ZKWatcher;<a name="line.28"></a> -<span class="sourceLineNo">029</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.29"></a> -<span class="sourceLineNo">030</span>import org.apache.hadoop.conf.Configuration;<a name="line.30"></a> -<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.HConstants;<a name="line.31"></a> -<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.TableName;<a name="line.32"></a> -<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.client.Connection;<a name="line.33"></a> -<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.client.Table;<a name="line.34"></a> -<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel;<a name="line.35"></a> -<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos;<a name="line.36"></a> -<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.security.User;<a name="line.37"></a> -<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;<a name="line.38"></a> -<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.zookeeper.ZKClusterId;<a name="line.39"></a> -<span class="sourceLineNo">040</span>import org.apache.hadoop.io.Text;<a name="line.40"></a> -<span class="sourceLineNo">041</span>import org.apache.hadoop.mapred.JobConf;<a name="line.41"></a> -<span class="sourceLineNo">042</span>import org.apache.hadoop.mapreduce.Job;<a name="line.42"></a> -<span class="sourceLineNo">043</span>import org.apache.hadoop.security.token.Token;<a name="line.43"></a> +<span class="sourceLineNo">029</span>import org.apache.hadoop.conf.Configuration;<a name="line.29"></a> +<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.HConstants;<a name="line.30"></a> +<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.TableName;<a name="line.31"></a> +<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.client.Connection;<a name="line.32"></a> +<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.client.Table;<a name="line.33"></a> +<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel;<a name="line.34"></a> +<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos;<a name="line.35"></a> +<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.security.User;<a name="line.36"></a> +<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;<a name="line.37"></a> +<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.zookeeper.ZKClusterId;<a name="line.38"></a> +<span class="sourceLineNo">039</span>import org.apache.hadoop.io.Text;<a name="line.39"></a> +<span class="sourceLineNo">040</span>import org.apache.hadoop.mapred.JobConf;<a name="line.40"></a> +<span class="sourceLineNo">041</span>import org.apache.hadoop.mapreduce.Job;<a name="line.41"></a> +<span class="sourceLineNo">042</span>import org.apache.hadoop.security.token.Token;<a name="line.42"></a> +<span class="sourceLineNo">043</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.43"></a> <span class="sourceLineNo">044</span>import org.apache.zookeeper.KeeperException;<a name="line.44"></a> <span class="sourceLineNo">045</span>import org.slf4j.Logger;<a name="line.45"></a> <span class="sourceLineNo">046</span>import org.slf4j.LoggerFactory;<a name="line.46"></a> @@ -61,271 +61,282 @@ <span class="sourceLineNo">053</span> // This class is referenced indirectly by User out in common; instances are created by reflection<a name="line.53"></a> <span class="sourceLineNo">054</span> private static final Logger LOG = LoggerFactory.getLogger(TokenUtil.class);<a name="line.54"></a> <span class="sourceLineNo">055</span><a name="line.55"></a> -<span class="sourceLineNo">056</span> /**<a name="line.56"></a> -<span class="sourceLineNo">057</span> * Obtain and return an authentication token for the current user.<a name="line.57"></a> -<span class="sourceLineNo">058</span> * @param conn The HBase cluster connection<a name="line.58"></a> -<span class="sourceLineNo">059</span> * @throws IOException if a remote error or serialization problem occurs.<a name="line.59"></a> -<span class="sourceLineNo">060</span> * @return the authentication token instance<a name="line.60"></a> -<span class="sourceLineNo">061</span> */<a name="line.61"></a> -<span class="sourceLineNo">062</span> public static Token<AuthenticationTokenIdentifier> obtainToken(<a name="line.62"></a> -<span class="sourceLineNo">063</span> Connection conn) throws IOException {<a name="line.63"></a> -<span class="sourceLineNo">064</span> Table meta = null;<a name="line.64"></a> -<span class="sourceLineNo">065</span> try {<a name="line.65"></a> -<span class="sourceLineNo">066</span> meta = conn.getTable(TableName.META_TABLE_NAME);<a name="line.66"></a> -<span class="sourceLineNo">067</span> CoprocessorRpcChannel rpcChannel = meta.coprocessorService(HConstants.EMPTY_START_ROW);<a name="line.67"></a> -<span class="sourceLineNo">068</span> AuthenticationProtos.AuthenticationService.BlockingInterface service =<a name="line.68"></a> -<span class="sourceLineNo">069</span> AuthenticationProtos.AuthenticationService.newBlockingStub(rpcChannel);<a name="line.69"></a> -<span class="sourceLineNo">070</span> AuthenticationProtos.GetAuthenticationTokenResponse response = service.getAuthenticationToken(null,<a name="line.70"></a> -<span class="sourceLineNo">071</span> AuthenticationProtos.GetAuthenticationTokenRequest.getDefaultInstance());<a name="line.71"></a> -<span class="sourceLineNo">072</span><a name="line.72"></a> -<span class="sourceLineNo">073</span> return toToken(response.getToken());<a name="line.73"></a> -<span class="sourceLineNo">074</span> } catch (ServiceException se) {<a name="line.74"></a> -<span class="sourceLineNo">075</span> throw ProtobufUtil.handleRemoteException(se);<a name="line.75"></a> -<span class="sourceLineNo">076</span> } finally {<a name="line.76"></a> -<span class="sourceLineNo">077</span> if (meta != null) {<a name="line.77"></a> -<span class="sourceLineNo">078</span> meta.close();<a name="line.78"></a> -<span class="sourceLineNo">079</span> }<a name="line.79"></a> -<span class="sourceLineNo">080</span> }<a name="line.80"></a> -<span class="sourceLineNo">081</span> }<a name="line.81"></a> -<span class="sourceLineNo">082</span><a name="line.82"></a> +<span class="sourceLineNo">056</span> // Set in TestTokenUtil via reflection<a name="line.56"></a> +<span class="sourceLineNo">057</span> private static ServiceException injectedException;<a name="line.57"></a> +<span class="sourceLineNo">058</span><a name="line.58"></a> +<span class="sourceLineNo">059</span> private static void injectFault() throws ServiceException {<a name="line.59"></a> +<span class="sourceLineNo">060</span> if (injectedException != null) {<a name="line.60"></a> +<span class="sourceLineNo">061</span> throw injectedException;<a name="line.61"></a> +<span class="sourceLineNo">062</span> }<a name="line.62"></a> +<span class="sourceLineNo">063</span> }<a name="line.63"></a> +<span class="sourceLineNo">064</span><a name="line.64"></a> +<span class="sourceLineNo">065</span> /**<a name="line.65"></a> +<span class="sourceLineNo">066</span> * Obtain and return an authentication token for the current user.<a name="line.66"></a> +<span class="sourceLineNo">067</span> * @param conn The HBase cluster connection<a name="line.67"></a> +<span class="sourceLineNo">068</span> * @throws IOException if a remote error or serialization problem occurs.<a name="line.68"></a> +<span class="sourceLineNo">069</span> * @return the authentication token instance<a name="line.69"></a> +<span class="sourceLineNo">070</span> */<a name="line.70"></a> +<span class="sourceLineNo">071</span> public static Token<AuthenticationTokenIdentifier> obtainToken(<a name="line.71"></a> +<span class="sourceLineNo">072</span> Connection conn) throws IOException {<a name="line.72"></a> +<span class="sourceLineNo">073</span> Table meta = null;<a name="line.73"></a> +<span class="sourceLineNo">074</span> try {<a name="line.74"></a> +<span class="sourceLineNo">075</span> injectFault();<a name="line.75"></a> +<span class="sourceLineNo">076</span><a name="line.76"></a> +<span class="sourceLineNo">077</span> meta = conn.getTable(TableName.META_TABLE_NAME);<a name="line.77"></a> +<span class="sourceLineNo">078</span> CoprocessorRpcChannel rpcChannel = meta.coprocessorService(HConstants.EMPTY_START_ROW);<a name="line.78"></a> +<span class="sourceLineNo">079</span> AuthenticationProtos.AuthenticationService.BlockingInterface service =<a name="line.79"></a> +<span class="sourceLineNo">080</span> AuthenticationProtos.AuthenticationService.newBlockingStub(rpcChannel);<a name="line.80"></a> +<span class="sourceLineNo">081</span> AuthenticationProtos.GetAuthenticationTokenResponse response = service.getAuthenticationToken(null,<a name="line.81"></a> +<span class="sourceLineNo">082</span> AuthenticationProtos.GetAuthenticationTokenRequest.getDefaultInstance());<a name="line.82"></a> <span class="sourceLineNo">083</span><a name="line.83"></a> -<span class="sourceLineNo">084</span> /**<a name="line.84"></a> -<span class="sourceLineNo">085</span> * Converts a Token instance (with embedded identifier) to the protobuf representation.<a name="line.85"></a> -<span class="sourceLineNo">086</span> *<a name="line.86"></a> -<span class="sourceLineNo">087</span> * @param token the Token instance to copy<a name="line.87"></a> -<span class="sourceLineNo">088</span> * @return the protobuf Token message<a name="line.88"></a> -<span class="sourceLineNo">089</span> */<a name="line.89"></a> -<span class="sourceLineNo">090</span> public static AuthenticationProtos.Token toToken(Token<AuthenticationTokenIdentifier> token) {<a name="line.90"></a> -<span class="sourceLineNo">091</span> AuthenticationProtos.Token.Builder builder = AuthenticationProtos.Token.newBuilder();<a name="line.91"></a> -<span class="sourceLineNo">092</span> builder.setIdentifier(ByteString.copyFrom(token.getIdentifier()));<a name="line.92"></a> -<span class="sourceLineNo">093</span> builder.setPassword(ByteString.copyFrom(token.getPassword()));<a name="line.93"></a> -<span class="sourceLineNo">094</span> if (token.getService() != null) {<a name="line.94"></a> -<span class="sourceLineNo">095</span> builder.setService(ByteString.copyFromUtf8(token.getService().toString()));<a name="line.95"></a> -<span class="sourceLineNo">096</span> }<a name="line.96"></a> -<span class="sourceLineNo">097</span> return builder.build();<a name="line.97"></a> -<span class="sourceLineNo">098</span> }<a name="line.98"></a> -<span class="sourceLineNo">099</span><a name="line.99"></a> -<span class="sourceLineNo">100</span> /**<a name="line.100"></a> -<span class="sourceLineNo">101</span> * Obtain and return an authentication token for the current user.<a name="line.101"></a> -<span class="sourceLineNo">102</span> * @param conn The HBase cluster connection<a name="line.102"></a> -<span class="sourceLineNo">103</span> * @return the authentication token instance<a name="line.103"></a> -<span class="sourceLineNo">104</span> */<a name="line.104"></a> -<span class="sourceLineNo">105</span> public static Token<AuthenticationTokenIdentifier> obtainToken(<a name="line.105"></a> -<span class="sourceLineNo">106</span> final Connection conn, User user) throws IOException, InterruptedException {<a name="line.106"></a> -<span class="sourceLineNo">107</span> return user.runAs(new PrivilegedExceptionAction<Token<AuthenticationTokenIdentifier>>() {<a name="line.107"></a> -<span class="sourceLineNo">108</span> @Override<a name="line.108"></a> -<span class="sourceLineNo">109</span> public Token<AuthenticationTokenIdentifier> run() throws Exception {<a name="line.109"></a> -<span class="sourceLineNo">110</span> return obtainToken(conn);<a name="line.110"></a> -<span class="sourceLineNo">111</span> }<a name="line.111"></a> -<span class="sourceLineNo">112</span> });<a name="line.112"></a> -<span class="sourceLineNo">113</span> }<a name="line.113"></a> -<span class="sourceLineNo">114</span><a name="line.114"></a> -<span class="sourceLineNo">115</span><a name="line.115"></a> -<span class="sourceLineNo">116</span> private static Text getClusterId(Token<AuthenticationTokenIdentifier> token)<a name="line.116"></a> -<span class="sourceLineNo">117</span> throws IOException {<a name="line.117"></a> -<span class="sourceLineNo">118</span> return token.getService() != null<a name="line.118"></a> -<span class="sourceLineNo">119</span> ? token.getService() : new Text("default");<a name="line.119"></a> -<span class="sourceLineNo">120</span> }<a name="line.120"></a> -<span class="sourceLineNo">121</span><a name="line.121"></a> -<span class="sourceLineNo">122</span> /**<a name="line.122"></a> -<span class="sourceLineNo">123</span> * Obtain an authentication token for the given user and add it to the<a name="line.123"></a> -<span class="sourceLineNo">124</span> * user's credentials.<a name="line.124"></a> -<span class="sourceLineNo">125</span> * @param conn The HBase cluster connection<a name="line.125"></a> -<span class="sourceLineNo">126</span> * @param user The user for whom to obtain the token<a name="line.126"></a> -<span class="sourceLineNo">127</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.127"></a> -<span class="sourceLineNo">128</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.128"></a> -<span class="sourceLineNo">129</span> */<a name="line.129"></a> -<span class="sourceLineNo">130</span> public static void obtainAndCacheToken(final Connection conn,<a name="line.130"></a> -<span class="sourceLineNo">131</span> User user)<a name="line.131"></a> -<span class="sourceLineNo">132</span> throws IOException, InterruptedException {<a name="line.132"></a> -<span class="sourceLineNo">133</span> try {<a name="line.133"></a> -<span class="sourceLineNo">134</span> Token<AuthenticationTokenIdentifier> token = obtainToken(conn, user);<a name="line.134"></a> -<span class="sourceLineNo">135</span><a name="line.135"></a> -<span class="sourceLineNo">136</span> if (token == null) {<a name="line.136"></a> -<span class="sourceLineNo">137</span> throw new IOException("No token returned for user " + user.getName());<a name="line.137"></a> -<span class="sourceLineNo">138</span> }<a name="line.138"></a> -<span class="sourceLineNo">139</span> if (LOG.isDebugEnabled()) {<a name="line.139"></a> -<span class="sourceLineNo">140</span> LOG.debug("Obtained token " + token.getKind().toString() + " for user " +<a name="line.140"></a> -<span class="sourceLineNo">141</span> user.getName());<a name="line.141"></a> -<span class="sourceLineNo">142</span> }<a name="line.142"></a> -<span class="sourceLineNo">143</span> user.addToken(token);<a name="line.143"></a> -<span class="sourceLineNo">144</span> } catch (IOException ioe) {<a name="line.144"></a> -<span class="sourceLineNo">145</span> throw ioe;<a name="line.145"></a> -<span class="sourceLineNo">146</span> } catch (InterruptedException ie) {<a name="line.146"></a> -<span class="sourceLineNo">147</span> throw ie;<a name="line.147"></a> -<span class="sourceLineNo">148</span> } catch (RuntimeException re) {<a name="line.148"></a> -<span class="sourceLineNo">149</span> throw re;<a name="line.149"></a> -<span class="sourceLineNo">150</span> } catch (Exception e) {<a name="line.150"></a> -<span class="sourceLineNo">151</span> throw new UndeclaredThrowableException(e,<a name="line.151"></a> -<span class="sourceLineNo">152</span> "Unexpected exception obtaining token for user " + user.getName());<a name="line.152"></a> -<span class="sourceLineNo">153</span> }<a name="line.153"></a> -<span class="sourceLineNo">154</span> }<a name="line.154"></a> -<span class="sourceLineNo">155</span><a name="line.155"></a> -<span class="sourceLineNo">156</span> /**<a name="line.156"></a> -<span class="sourceLineNo">157</span> * Obtain an authentication token on behalf of the given user and add it to<a name="line.157"></a> -<span class="sourceLineNo">158</span> * the credentials for the given map reduce job.<a name="line.158"></a> -<span class="sourceLineNo">159</span> * @param conn The HBase cluster connection<a name="line.159"></a> -<span class="sourceLineNo">160</span> * @param user The user for whom to obtain the token<a name="line.160"></a> -<span class="sourceLineNo">161</span> * @param job The job instance in which the token should be stored<a name="line.161"></a> -<span class="sourceLineNo">162</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.162"></a> -<span class="sourceLineNo">163</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.163"></a> -<span class="sourceLineNo">164</span> */<a name="line.164"></a> -<span class="sourceLineNo">165</span> public static void obtainTokenForJob(final Connection conn,<a name="line.165"></a> -<span class="sourceLineNo">166</span> User user, Job job)<a name="line.166"></a> -<span class="sourceLineNo">167</span> throws IOException, InterruptedException {<a name="line.167"></a> -<span class="sourceLineNo">168</span> try {<a name="line.168"></a> -<span class="sourceLineNo">169</span> Token<AuthenticationTokenIdentifier> token = obtainToken(conn, user);<a name="line.169"></a> -<span class="sourceLineNo">170</span><a name="line.170"></a> -<span class="sourceLineNo">171</span> if (token == null) {<a name="line.171"></a> -<span class="sourceLineNo">172</span> throw new IOException("No token returned for user " + user.getName());<a name="line.172"></a> -<span class="sourceLineNo">173</span> }<a name="line.173"></a> -<span class="sourceLineNo">174</span> Text clusterId = getClusterId(token);<a name="line.174"></a> -<span class="sourceLineNo">175</span> if (LOG.isDebugEnabled()) {<a name="line.175"></a> -<span class="sourceLineNo">176</span> LOG.debug("Obtained token " + token.getKind().toString() + " for user " +<a name="line.176"></a> -<span class="sourceLineNo">177</span> user.getName() + " on cluster " + clusterId.toString());<a name="line.177"></a> -<span class="sourceLineNo">178</span> }<a name="line.178"></a> -<span class="sourceLineNo">179</span> job.getCredentials().addToken(clusterId, token);<a name="line.179"></a> -<span class="sourceLineNo">180</span> } catch (IOException ioe) {<a name="line.180"></a> -<span class="sourceLineNo">181</span> throw ioe;<a name="line.181"></a> -<span class="sourceLineNo">182</span> } catch (InterruptedException ie) {<a name="line.182"></a> -<span class="sourceLineNo">183</span> throw ie;<a name="line.183"></a> -<span class="sourceLineNo">184</span> } catch (RuntimeException re) {<a name="line.184"></a> -<span class="sourceLineNo">185</span> throw re;<a name="line.185"></a> -<span class="sourceLineNo">186</span> } catch (Exception e) {<a name="line.186"></a> -<span class="sourceLineNo">187</span> throw new UndeclaredThrowableException(e,<a name="line.187"></a> -<span class="sourceLineNo">188</span> "Unexpected exception obtaining token for user " + user.getName());<a name="line.188"></a> -<span class="sourceLineNo">189</span> }<a name="line.189"></a> -<span class="sourceLineNo">190</span> }<a name="line.190"></a> -<span class="sourceLineNo">191</span><a name="line.191"></a> -<span class="sourceLineNo">192</span> /**<a name="line.192"></a> -<span class="sourceLineNo">193</span> * Obtain an authentication token on behalf of the given user and add it to<a name="line.193"></a> -<span class="sourceLineNo">194</span> * the credentials for the given map reduce job.<a name="line.194"></a> -<span class="sourceLineNo">195</span> * @param conn The HBase cluster connection<a name="line.195"></a> -<span class="sourceLineNo">196</span> * @param user The user for whom to obtain the token<a name="line.196"></a> -<span class="sourceLineNo">197</span> * @param job The job configuration in which the token should be stored<a name="line.197"></a> -<span class="sourceLineNo">198</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.198"></a> -<span class="sourceLineNo">199</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.199"></a> -<span class="sourceLineNo">200</span> */<a name="line.200"></a> -<span class="sourceLineNo">201</span> public static void obtainTokenForJob(final Connection conn, final JobConf job, User user)<a name="line.201"></a> -<span class="sourceLineNo">202</span> throws IOException, InterruptedException {<a name="line.202"></a> -<span class="sourceLineNo">203</span> try {<a name="line.203"></a> -<span class="sourceLineNo">204</span> Token<AuthenticationTokenIdentifier> token = obtainToken(conn, user);<a name="line.204"></a> -<span class="sourceLineNo">205</span><a name="line.205"></a> -<span class="sourceLineNo">206</span> if (token == null) {<a name="line.206"></a> -<span class="sourceLineNo">207</span> throw new IOException("No token returned for user " + user.getName());<a name="line.207"></a> -<span class="sourceLineNo">208</span> }<a name="line.208"></a> -<span class="sourceLineNo">209</span> Text clusterId = getClusterId(token);<a name="line.209"></a> -<span class="sourceLineNo">210</span> if (LOG.isDebugEnabled()) {<a name="line.210"></a> -<span class="sourceLineNo">211</span> LOG.debug("Obtained token " + token.getKind().toString() + " for user " +<a name="line.211"></a> -<span class="sourceLineNo">212</span> user.getName() + " on cluster " + clusterId.toString());<a name="line.212"></a> -<span class="sourceLineNo">213</span> }<a name="line.213"></a> -<span class="sourceLineNo">214</span> job.getCredentials().addToken(clusterId, token);<a name="line.214"></a> -<span class="sourceLineNo">215</span> } catch (IOException ioe) {<a name="line.215"></a> -<span class="sourceLineNo">216</span> throw ioe;<a name="line.216"></a> -<span class="sourceLineNo">217</span> } catch (InterruptedException ie) {<a name="line.217"></a> -<span class="sourceLineNo">218</span> throw ie;<a name="line.218"></a> -<span class="sourceLineNo">219</span> } catch (RuntimeException re) {<a name="line.219"></a> -<span class="sourceLineNo">220</span> throw re;<a name="line.220"></a> -<span class="sourceLineNo">221</span> } catch (Exception e) {<a name="line.221"></a> -<span class="sourceLineNo">222</span> throw new UndeclaredThrowableException(e,<a name="line.222"></a> -<span class="sourceLineNo">223</span> "Unexpected exception obtaining token for user "+user.getName());<a name="line.223"></a> -<span class="sourceLineNo">224</span> }<a name="line.224"></a> -<span class="sourceLineNo">225</span> }<a name="line.225"></a> -<span class="sourceLineNo">226</span><a name="line.226"></a> -<span class="sourceLineNo">227</span> /**<a name="line.227"></a> -<span class="sourceLineNo">228</span> * Checks for an authentication token for the given user, obtaining a new token if necessary,<a name="line.228"></a> -<span class="sourceLineNo">229</span> * and adds it to the credentials for the given map reduce job.<a name="line.229"></a> -<span class="sourceLineNo">230</span> *<a name="line.230"></a> -<span class="sourceLineNo">231</span> * @param conn The HBase cluster connection<a name="line.231"></a> -<span class="sourceLineNo">232</span> * @param user The user for whom to obtain the token<a name="line.232"></a> -<span class="sourceLineNo">233</span> * @param job The job configuration in which the token should be stored<a name="line.233"></a> -<span class="sourceLineNo">234</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.234"></a> -<span class="sourceLineNo">235</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.235"></a> -<span class="sourceLineNo">236</span> */<a name="line.236"></a> -<span class="sourceLineNo">237</span> public static void addTokenForJob(final Connection conn, final JobConf job, User user)<a name="line.237"></a> -<span class="sourceLineNo">238</span> throws IOException, InterruptedException {<a name="line.238"></a> -<span class="sourceLineNo">239</span><a name="line.239"></a> -<span class="sourceLineNo">240</span> Token<AuthenticationTokenIdentifier> token = getAuthToken(conn.getConfiguration(), user);<a name="line.240"></a> -<span class="sourceLineNo">241</span> if (token == null) {<a name="line.241"></a> -<span class="sourceLineNo">242</span> token = obtainToken(conn, user);<a name="line.242"></a> -<span class="sourceLineNo">243</span> }<a name="line.243"></a> -<span class="sourceLineNo">244</span> job.getCredentials().addToken(token.getService(), token);<a name="line.244"></a> -<span class="sourceLineNo">245</span> }<a name="line.245"></a> -<span class="sourceLineNo">246</span><a name="line.246"></a> -<span class="sourceLineNo">247</span> /**<a name="line.247"></a> -<span class="sourceLineNo">248</span> * Checks for an authentication token for the given user, obtaining a new token if necessary,<a name="line.248"></a> -<span class="sourceLineNo">249</span> * and adds it to the credentials for the given map reduce job.<a name="line.249"></a> -<span class="sourceLineNo">250</span> *<a name="line.250"></a> -<span class="sourceLineNo">251</span> * @param conn The HBase cluster connection<a name="line.251"></a> -<span class="sourceLineNo">252</span> * @param user The user for whom to obtain the token<a name="line.252"></a> -<span class="sourceLineNo">253</span> * @param job The job instance in which the token should be stored<a name="line.253"></a> -<span class="sourceLineNo">254</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.254"></a> -<span class="sourceLineNo">255</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.255"></a> -<span class="sourceLineNo">256</span> */<a name="line.256"></a> -<span class="sourceLineNo">257</span> public static void addTokenForJob(final Connection conn, User user, Job job)<a name="line.257"></a> -<span class="sourceLineNo">258</span> throws IOException, InterruptedException {<a name="line.258"></a> -<span class="sourceLineNo">259</span> Token<AuthenticationTokenIdentifier> token = getAuthToken(conn.getConfiguration(), user);<a name="line.259"></a> -<span class="sourceLineNo">260</span> if (token == null) {<a name="line.260"></a> -<span class="sourceLineNo">261</span> token = obtainToken(conn, user);<a name="line.261"></a> -<span class="sourceLineNo">262</span> }<a name="line.262"></a> -<span class="sourceLineNo">263</span> job.getCredentials().addToken(token.getService(), token);<a name="line.263"></a> -<span class="sourceLineNo">264</span> }<a name="line.264"></a> -<span class="sourceLineNo">265</span><a name="line.265"></a> -<span class="sourceLineNo">266</span> /**<a name="line.266"></a> -<span class="sourceLineNo">267</span> * Checks if an authentication tokens exists for the connected cluster,<a name="line.267"></a> -<span class="sourceLineNo">268</span> * obtaining one if needed and adding it to the user's credentials.<a name="line.268"></a> -<span class="sourceLineNo">269</span> *<a name="line.269"></a> -<span class="sourceLineNo">270</span> * @param conn The HBase cluster connection<a name="line.270"></a> -<span class="sourceLineNo">271</span> * @param user The user for whom to obtain the token<a name="line.271"></a> -<span class="sourceLineNo">272</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.272"></a> -<span class="sourceLineNo">273</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.273"></a> -<span class="sourceLineNo">274</span> * @return true if the token was added, false if it already existed<a name="line.274"></a> -<span class="sourceLineNo">275</span> */<a name="line.275"></a> -<span class="sourceLineNo">276</span> public static boolean addTokenIfMissing(Connection conn, User user)<a name="line.276"></a> -<span class="sourceLineNo">277</span> throws IOException, InterruptedException {<a name="line.277"></a> -<span class="sourceLineNo">278</span> Token<AuthenticationTokenIdentifier> token = getAuthToken(conn.getConfiguration(), user);<a name="line.278"></a> -<span class="sourceLineNo">279</span> if (token == null) {<a name="line.279"></a> -<span class="sourceLineNo">280</span> token = obtainToken(conn, user);<a name="line.280"></a> -<span class="sourceLineNo">281</span> user.getUGI().addToken(token.getService(), token);<a name="line.281"></a> -<span class="sourceLineNo">282</span> return true;<a name="line.282"></a> -<span class="sourceLineNo">283</span> }<a name="line.283"></a> -<span class="sourceLineNo">284</span> return false;<a name="line.284"></a> -<span class="sourceLineNo">285</span> }<a name="line.285"></a> -<span class="sourceLineNo">286</span><a name="line.286"></a> -<span class="sourceLineNo">287</span> /**<a name="line.287"></a> -<span class="sourceLineNo">288</span> * Get the authentication token of the user for the cluster specified in the configuration<a name="line.288"></a> -<span class="sourceLineNo">289</span> * @return null if the user does not have the token, otherwise the auth token for the cluster.<a name="line.289"></a> -<span class="sourceLineNo">290</span> */<a name="line.290"></a> -<span class="sourceLineNo">291</span> private static Token<AuthenticationTokenIdentifier> getAuthToken(Configuration conf, User user)<a name="line.291"></a> -<span class="sourceLineNo">292</span> throws IOException, InterruptedException {<a name="line.292"></a> -<span class="sourceLineNo">293</span> ZKWatcher zkw = new ZKWatcher(conf, "TokenUtil-getAuthToken", null);<a name="line.293"></a> -<span class="sourceLineNo">294</span> try {<a name="line.294"></a> -<span class="sourceLineNo">295</span> String clusterId = ZKClusterId.readClusterIdZNode(zkw);<a name="line.295"></a> -<span class="sourceLineNo">296</span> if (clusterId == null) {<a name="line.296"></a> -<span class="sourceLineNo">297</span> throw new IOException("Failed to get cluster ID");<a name="line.297"></a> -<span class="sourceLineNo">298</span> }<a name="line.298"></a> -<span class="sourceLineNo">299</span> return new AuthenticationTokenSelector().selectToken(new Text(clusterId), user.getTokens());<a name="line.299"></a> -<span class="sourceLineNo">300</span> } catch (KeeperException e) {<a name="line.300"></a> -<span class="sourceLineNo">301</span> throw new IOException(e);<a name="line.301"></a> -<span class="sourceLineNo">302</span> } finally {<a name="line.302"></a> -<span class="sourceLineNo">303</span> zkw.close();<a name="line.303"></a> -<span class="sourceLineNo">304</span> }<a name="line.304"></a> -<span class="sourceLineNo">305</span> }<a name="line.305"></a> -<span class="sourceLineNo">306</span><a name="line.306"></a> -<span class="sourceLineNo">307</span> /**<a name="line.307"></a> -<span class="sourceLineNo">308</span> * Converts a protobuf Token message back into a Token instance.<a name="line.308"></a> -<span class="sourceLineNo">309</span> *<a name="line.309"></a> -<span class="sourceLineNo">310</span> * @param proto the protobuf Token message<a name="line.310"></a> -<span class="sourceLineNo">311</span> * @return the Token instance<a name="line.311"></a> -<span class="sourceLineNo">312</span> */<a name="line.312"></a> -<span class="sourceLineNo">313</span> public static Token<AuthenticationTokenIdentifier> toToken(AuthenticationProtos.Token proto) {<a name="line.313"></a> -<span class="sourceLineNo">314</span> return new Token<>(<a name="line.314"></a> -<span class="sourceLineNo">315</span> proto.hasIdentifier() ? proto.getIdentifier().toByteArray() : null,<a name="line.315"></a> -<span class="sourceLineNo">316</span> proto.hasPassword() ? proto.getPassword().toByteArray() : null,<a name="line.316"></a> -<span class="sourceLineNo">317</span> AuthenticationTokenIdentifier.AUTH_TOKEN_TYPE,<a name="line.317"></a> -<span class="sourceLineNo">318</span> proto.hasService() ? new Text(proto.getService().toStringUtf8()) : null);<a name="line.318"></a> -<span class="sourceLineNo">319</span> }<a name="line.319"></a> -<span class="sourceLineNo">320</span>}<a name="line.320"></a> +<span class="sourceLineNo">084</span> return toToken(response.getToken());<a name="line.84"></a> +<span class="sourceLineNo">085</span> } catch (ServiceException se) {<a name="line.85"></a> +<span class="sourceLineNo">086</span> throw ProtobufUtil.handleRemoteException(se);<a name="line.86"></a> +<span class="sourceLineNo">087</span> } finally {<a name="line.87"></a> +<span class="sourceLineNo">088</span> if (meta != null) {<a name="line.88"></a> +<span class="sourceLineNo">089</span> meta.close();<a name="line.89"></a> +<span class="sourceLineNo">090</span> }<a name="line.90"></a> +<span class="sourceLineNo">091</span> }<a name="line.91"></a> +<span class="sourceLineNo">092</span> }<a name="line.92"></a> +<span class="sourceLineNo">093</span><a name="line.93"></a> +<span class="sourceLineNo">094</span><a name="line.94"></a> +<span class="sourceLineNo">095</span> /**<a name="line.95"></a> +<span class="sourceLineNo">096</span> * Converts a Token instance (with embedded identifier) to the protobuf representation.<a name="line.96"></a> +<span class="sourceLineNo">097</span> *<a name="line.97"></a> +<span class="sourceLineNo">098</span> * @param token the Token instance to copy<a name="line.98"></a> +<span class="sourceLineNo">099</span> * @return the protobuf Token message<a name="line.99"></a> +<span class="sourceLineNo">100</span> */<a name="line.100"></a> +<span class="sourceLineNo">101</span> public static AuthenticationProtos.Token toToken(Token<AuthenticationTokenIdentifier> token) {<a name="line.101"></a> +<span class="sourceLineNo">102</span> AuthenticationProtos.Token.Builder builder = AuthenticationProtos.Token.newBuilder();<a name="line.102"></a> +<span class="sourceLineNo">103</span> builder.setIdentifier(ByteString.copyFrom(token.getIdentifier()));<a name="line.103"></a> +<span class="sourceLineNo">104</span> builder.setPassword(ByteString.copyFrom(token.getPassword()));<a name="line.104"></a> +<span class="sourceLineNo">105</span> if (token.getService() != null) {<a name="line.105"></a> +<span class="sourceLineNo">106</span> builder.setService(ByteString.copyFromUtf8(token.getService().toString()));<a name="line.106"></a> +<span class="sourceLineNo">107</span> }<a name="line.107"></a> +<span class="sourceLineNo">108</span> return builder.build();<a name="line.108"></a> +<span class="sourceLineNo">109</span> }<a name="line.109"></a> +<span class="sourceLineNo">110</span><a name="line.110"></a> +<span class="sourceLineNo">111</span> /**<a name="line.111"></a> +<span class="sourceLineNo">112</span> * Obtain and return an authentication token for the current user.<a name="line.112"></a> +<span class="sourceLineNo">113</span> * @param conn The HBase cluster connection<a name="line.113"></a> +<span class="sourceLineNo">114</span> * @return the authentication token instance<a name="line.114"></a> +<span class="sourceLineNo">115</span> */<a name="line.115"></a> +<span class="sourceLineNo">116</span> public static Token<AuthenticationTokenIdentifier> obtainToken(<a name="line.116"></a> +<span class="sourceLineNo">117</span> final Connection conn, User user) throws IOException, InterruptedException {<a name="line.117"></a> +<span class="sourceLineNo">118</span> return user.runAs(new PrivilegedExceptionAction<Token<AuthenticationTokenIdentifier>>() {<a name="line.118"></a> +<span class="sourceLineNo">119</span> @Override<a name="line.119"></a> +<span class="sourceLineNo">120</span> public Token<AuthenticationTokenIdentifier> run() throws Exception {<a name="line.120"></a> +<span class="sourceLineNo">121</span> return obtainToken(conn);<a name="line.121"></a> +<span class="sourceLineNo">122</span> }<a name="line.122"></a> +<span class="sourceLineNo">123</span> });<a name="line.123"></a> +<span class="sourceLineNo">124</span> }<a name="line.124"></a> +<span class="sourceLineNo">125</span><a name="line.125"></a> +<span class="sourceLineNo">126</span><a name="line.126"></a> +<span class="sourceLineNo">127</span> private static Text getClusterId(Token<AuthenticationTokenIdentifier> token)<a name="line.127"></a> +<span class="sourceLineNo">128</span> throws IOException {<a name="line.128"></a> +<span class="sourceLineNo">129</span> return token.getService() != null<a name="line.129"></a> +<span class="sourceLineNo">130</span> ? token.getService() : new Text("default");<a name="line.130"></a> +<span class="sourceLineNo">131</span> }<a name="line.131"></a> +<span class="sourceLineNo">132</span><a name="line.132"></a> +<span class="sourceLineNo">133</span> /**<a name="line.133"></a> +<span class="sourceLineNo">134</span> * Obtain an authentication token for the given user and add it to the<a name="line.134"></a> +<span class="sourceLineNo">135</span> * user's credentials.<a name="line.135"></a> +<span class="sourceLineNo">136</span> * @param conn The HBase cluster connection<a name="line.136"></a> +<span class="sourceLineNo">137</span> * @param user The user for whom to obtain the token<a name="line.137"></a> +<span class="sourceLineNo">138</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.138"></a> +<span class="sourceLineNo">139</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.139"></a> +<span class="sourceLineNo">140</span> */<a name="line.140"></a> +<span class="sourceLineNo">141</span> public static void obtainAndCacheToken(final Connection conn,<a name="line.141"></a> +<span class="sourceLineNo">142</span> User user)<a name="line.142"></a> +<span class="sourceLineNo">143</span> throws IOException, InterruptedException {<a name="line.143"></a> +<span class="sourceLineNo">144</span> try {<a name="line.144"></a> +<span class="sourceLineNo">145</span> Token<AuthenticationTokenIdentifier> token = obtainToken(conn, user);<a name="line.145"></a> +<span class="sourceLineNo">146</span><a name="line.146"></a> +<span class="sourceLineNo">147</span> if (token == null) {<a name="line.147"></a> +<span class="sourceLineNo">148</span> throw new IOException("No token returned for user " + user.getName());<a name="line.148"></a> +<span class="sourceLineNo">149</span> }<a name="line.149"></a> +<span class="sourceLineNo">150</span> if (LOG.isDebugEnabled()) {<a name="line.150"></a> +<span class="sourceLineNo">151</span> LOG.debug("Obtained token " + token.getKind().toString() + " for user " +<a name="line.151"></a> +<span class="sourceLineNo">152</span> user.getName());<a name="line.152"></a> +<span class="sourceLineNo">153</span> }<a name="line.153"></a> +<span class="sourceLineNo">154</span> user.addToken(token);<a name="line.154"></a> +<span class="sourceLineNo">155</span> } catch (IOException ioe) {<a name="line.155"></a> +<span class="sourceLineNo">156</span> throw ioe;<a name="line.156"></a> +<span class="sourceLineNo">157</span> } catch (InterruptedException ie) {<a name="line.157"></a> +<span class="sourceLineNo">158</span> throw ie;<a name="line.158"></a> +<span class="sourceLineNo">159</span> } catch (RuntimeException re) {<a name="line.159"></a> +<span class="sourceLineNo">160</span> throw re;<a name="line.160"></a> +<span class="sourceLineNo">161</span> } catch (Exception e) {<a name="line.161"></a> +<span class="sourceLineNo">162</span> throw new UndeclaredThrowableException(e,<a name="line.162"></a> +<span class="sourceLineNo">163</span> "Unexpected exception obtaining token for user " + user.getName());<a name="line.163"></a> +<span class="sourceLineNo">164</span> }<a name="line.164"></a> +<span class="sourceLineNo">165</span> }<a name="line.165"></a> +<span class="sourceLineNo">166</span><a name="line.166"></a> +<span class="sourceLineNo">167</span> /**<a name="line.167"></a> +<span class="sourceLineNo">168</span> * Obtain an authentication token on behalf of the given user and add it to<a name="line.168"></a> +<span class="sourceLineNo">169</span> * the credentials for the given map reduce job.<a name="line.169"></a> +<span class="sourceLineNo">170</span> * @param conn The HBase cluster connection<a name="line.170"></a> +<span class="sourceLineNo">171</span> * @param user The user for whom to obtain the token<a name="line.171"></a> +<span class="sourceLineNo">172</span> * @param job The job instance in which the token should be stored<a name="line.172"></a> +<span class="sourceLineNo">173</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.173"></a> +<span class="sourceLineNo">174</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.174"></a> +<span class="sourceLineNo">175</span> */<a name="line.175"></a> +<span class="sourceLineNo">176</span> public static void obtainTokenForJob(final Connection conn,<a name="line.176"></a> +<span class="sourceLineNo">177</span> User user, Job job)<a name="line.177"></a> +<span class="sourceLineNo">178</span> throws IOException, InterruptedException {<a name="line.178"></a> +<span class="sourceLineNo">179</span> try {<a name="line.179"></a> +<span class="sourceLineNo">180</span> Token<AuthenticationTokenIdentifier> token = obtainToken(conn, user);<a name="line.180"></a> +<span class="sourceLineNo">181</span><a name="line.181"></a> +<span class="sourceLineNo">182</span> if (token == null) {<a name="line.182"></a> +<span class="sourceLineNo">183</span> throw new IOException("No token returned for user " + user.getName());<a name="line.183"></a> +<span class="sourceLineNo">184</span> }<a name="line.184"></a> +<span class="sourceLineNo">185</span> Text clusterId = getClusterId(token);<a name="line.185"></a> +<span class="sourceLineNo">186</span> if (LOG.isDebugEnabled()) {<a name="line.186"></a> +<span class="sourceLineNo">187</span> LOG.debug("Obtained token " + token.getKind().toString() + " for user " +<a name="line.187"></a> +<span class="sourceLineNo">188</span> user.getName() + " on cluster " + clusterId.toString());<a name="line.188"></a> +<span class="sourceLineNo">189</span> }<a name="line.189"></a> +<span class="sourceLineNo">190</span> job.getCredentials().addToken(clusterId, token);<a name="line.190"></a> +<span class="sourceLineNo">191</span> } catch (IOException ioe) {<a name="line.191"></a> +<span class="sourceLineNo">192</span> throw ioe;<a name="line.192"></a> +<span class="sourceLineNo">193</span> } catch (InterruptedException ie) {<a name="line.193"></a> +<span class="sourceLineNo">194</span> throw ie;<a name="line.194"></a> +<span class="sourceLineNo">195</span> } catch (RuntimeException re) {<a name="line.195"></a> +<span class="sourceLineNo">196</span> throw re;<a name="line.196"></a> +<span class="sourceLineNo">197</span> } catch (Exception e) {<a name="line.197"></a> +<span class="sourceLineNo">198</span> throw new UndeclaredThrowableException(e,<a name="line.198"></a> +<span class="sourceLineNo">199</span> "Unexpected exception obtaining token for user " + user.getName());<a name="line.199"></a> +<span class="sourceLineNo">200</span> }<a name="line.200"></a> +<span class="sourceLineNo">201</span> }<a name="line.201"></a> +<span class="sourceLineNo">202</span><a name="line.202"></a> +<span class="sourceLineNo">203</span> /**<a name="line.203"></a> +<span class="sourceLineNo">204</span> * Obtain an authentication token on behalf of the given user and add it to<a name="line.204"></a> +<span class="sourceLineNo">205</span> * the credentials for the given map reduce job.<a name="line.205"></a> +<span class="sourceLineNo">206</span> * @param conn The HBase cluster connection<a name="line.206"></a> +<span class="sourceLineNo">207</span> * @param user The user for whom to obtain the token<a name="line.207"></a> +<span class="sourceLineNo">208</span> * @param job The job configuration in which the token should be stored<a name="line.208"></a> +<span class="sourceLineNo">209</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.209"></a> +<span class="sourceLineNo">210</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.210"></a> +<span class="sourceLineNo">211</span> */<a name="line.211"></a> +<span class="sourceLineNo">212</span> public static void obtainTokenForJob(final Connection conn, final JobConf job, User user)<a name="line.212"></a> +<span class="sourceLineNo">213</span> throws IOException, InterruptedException {<a name="line.213"></a> +<span class="sourceLineNo">214</span> try {<a name="line.214"></a> +<span class="sourceLineNo">215</span> Token<AuthenticationTokenIdentifier> token = obtainToken(conn, user);<a name="line.215"></a> +<span class="sourceLineNo">216</span><a name="line.216"></a> +<span class="sourceLineNo">217</span> if (token == null) {<a name="line.217"></a> +<span class="sourceLineNo">218</span> throw new IOException("No token returned for user " + user.getName());<a name="line.218"></a> +<span class="sourceLineNo">219</span> }<a name="line.219"></a> +<span class="sourceLineNo">220</span> Text clusterId = getClusterId(token);<a name="line.220"></a> +<span class="sourceLineNo">221</span> if (LOG.isDebugEnabled()) {<a name="line.221"></a> +<span class="sourceLineNo">222</span> LOG.debug("Obtained token " + token.getKind().toString() + " for user " +<a name="line.222"></a> +<span class="sourceLineNo">223</span> user.getName() + " on cluster " + clusterId.toString());<a name="line.223"></a> +<span class="sourceLineNo">224</span> }<a name="line.224"></a> +<span class="sourceLineNo">225</span> job.getCredentials().addToken(clusterId, token);<a name="line.225"></a> +<span class="sourceLineNo">226</span> } catch (IOException ioe) {<a name="line.226"></a> +<span class="sourceLineNo">227</span> throw ioe;<a name="line.227"></a> +<span class="sourceLineNo">228</span> } catch (InterruptedException ie) {<a name="line.228"></a> +<span class="sourceLineNo">229</span> throw ie;<a name="line.229"></a> +<span class="sourceLineNo">230</span> } catch (RuntimeException re) {<a name="line.230"></a> +<span class="sourceLineNo">231</span> throw re;<a name="line.231"></a> +<span class="sourceLineNo">232</span> } catch (Exception e) {<a name="line.232"></a> +<span class="sourceLineNo">233</span> throw new UndeclaredThrowableException(e,<a name="line.233"></a> +<span class="sourceLineNo">234</span> "Unexpected exception obtaining token for user "+user.getName());<a name="line.234"></a> +<span class="sourceLineNo">235</span> }<a name="line.235"></a> +<span class="sourceLineNo">236</span> }<a name="line.236"></a> +<span class="sourceLineNo">237</span><a name="line.237"></a> +<span class="sourceLineNo">238</span> /**<a name="line.238"></a> +<span class="sourceLineNo">239</span> * Checks for an authentication token for the given user, obtaining a new token if necessary,<a name="line.239"></a> +<span class="sourceLineNo">240</span> * and adds it to the credentials for the given map reduce job.<a name="line.240"></a> +<span class="sourceLineNo">241</span> *<a name="line.241"></a> +<span class="sourceLineNo">242</span> * @param conn The HBase cluster connection<a name="line.242"></a> +<span class="sourceLineNo">243</span> * @param user The user for whom to obtain the token<a name="line.243"></a> +<span class="sourceLineNo">244</span> * @param job The job configuration in which the token should be stored<a name="line.244"></a> +<span class="sourceLineNo">245</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.245"></a> +<span class="sourceLineNo">246</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.246"></a> +<span class="sourceLineNo">247</span> */<a name="line.247"></a> +<span class="sourceLineNo">248</span> public static void addTokenForJob(final Connection conn, final JobConf job, User user)<a name="line.248"></a> +<span class="sourceLineNo">249</span> throws IOException, InterruptedException {<a name="line.249"></a> +<span class="sourceLineNo">250</span><a name="line.250"></a> +<span class="sourceLineNo">251</span> Token<AuthenticationTokenIdentifier> token = getAuthToken(conn.getConfiguration(), user);<a name="line.251"></a> +<span class="sourceLineNo">252</span> if (token == null) {<a name="line.252"></a> +<span class="sourceLineNo">253</span> token = obtainToken(conn, user);<a name="line.253"></a> +<span class="sourceLineNo">254</span> }<a name="line.254"></a> +<span class="sourceLineNo">255</span> job.getCredentials().addToken(token.getService(), token);<a name="line.255"></a> +<span class="sourceLineNo">256</span> }<a name="line.256"></a> +<span class="sourceLineNo">257</span><a name="line.257"></a> +<span class="sourceLineNo">258</span> /**<a name="line.258"></a> +<span class="sourceLineNo">259</span> * Checks for an authentication token for the given user, obtaining a new token if necessary,<a name="line.259"></a> +<span class="sourceLineNo">260</span> * and adds it to the credentials for the given map reduce job.<a name="line.260"></a> +<span class="sourceLineNo">261</span> *<a name="line.261"></a> +<span class="sourceLineNo">262</span> * @param conn The HBase cluster connection<a name="line.262"></a> +<span class="sourceLineNo">263</span> * @param user The user for whom to obtain the token<a name="line.263"></a> +<span class="sourceLineNo">264</span> * @param job The job instance in which the token should be stored<a name="line.264"></a> +<span class="sourceLineNo">265</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.265"></a> +<span class="sourceLineNo">266</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.266"></a> +<span class="sourceLineNo">267</span> */<a name="line.267"></a> +<span class="sourceLineNo">268</span> public static void addTokenForJob(final Connection conn, User user, Job job)<a name="line.268"></a> +<span class="sourceLineNo">269</span> throws IOException, InterruptedException {<a name="line.269"></a> +<span class="sourceLineNo">270</span> Token<AuthenticationTokenIdentifier> token = getAuthToken(conn.getConfiguration(), user);<a name="line.270"></a> +<span class="sourceLineNo">271</span> if (token == null) {<a name="line.271"></a> +<span class="sourceLineNo">272</span> token = obtainToken(conn, user);<a name="line.272"></a> +<span class="sourceLineNo">273</span> }<a name="line.273"></a> +<span class="sourceLineNo">274</span> job.getCredentials().addToken(token.getService(), token);<a name="line.274"></a> +<span class="sourceLineNo">275</span> }<a name="line.275"></a> +<span class="sourceLineNo">276</span><a name="line.276"></a> +<span class="sourceLineNo">277</span> /**<a name="line.277"></a> +<span class="sourceLineNo">278</span> * Checks if an authentication tokens exists for the connected cluster,<a name="line.278"></a> +<span class="sourceLineNo">279</span> * obtaining one if needed and adding it to the user's credentials.<a name="line.279"></a> +<span class="sourceLineNo">280</span> *<a name="line.280"></a> +<span class="sourceLineNo">281</span> * @param conn The HBase cluster connection<a name="line.281"></a> +<span class="sourceLineNo">282</span> * @param user The user for whom to obtain the token<a name="line.282"></a> +<span class="sourceLineNo">283</span> * @throws IOException If making a remote call to the authentication service fails<a name="line.283"></a> +<span class="sourceLineNo">284</span> * @throws InterruptedException If executing as the given user is interrupted<a name="line.284"></a> +<span class="sourceLineNo">285</span> * @return true if the token was added, false if it already existed<a name="line.285"></a> +<span class="sourceLineNo">286</span> */<a name="line.286"></a> +<span class="sourceLineNo">287</span> public static boolean addTokenIfMissing(Connection conn, User user)<a name="line.287"></a> +<span class="sourceLineNo">288</span> throws IOException, InterruptedException {<a name="line.288"></a> +<span class="sourceLineNo">289</span> Token<AuthenticationTokenIdentifier> token = getAuthToken(conn.getConfiguration(), user);<a name="line.289"></a> +<span class="sourceLineNo">290</span> if (token == null) {<a name="line.290"></a> +<span class="sourceLineNo">291</span> token = obtainToken(conn, user);<a name="line.291"></a> +<span class="sourceLineNo">292</span> user.getUGI().addToken(token.getService(), token);<a name="line.292"></a> +<span class="sourceLineNo">293</span> return true;<a name="line.293"></a> +<span class="sourceLineNo">294</span> }<a name="line.294"></a> +<span class="sourceLineNo">295</span> return false;<a name="line.295"></a> +<span class="sourceLineNo">296</span> }<a name="line.296"></a> +<span class="sourceLineNo">297</span><a name="line.297"></a> +<span class="sourceLineNo">298</span> /**<a name="line.298"></a> +<span class="sourceLineNo">299</span> * Get the authentication token of the user for the cluster specified in the configuration<a name="line.299"></a> +<span class="sourceLineNo">300</span> * @return null if the user does not have the token, otherwise the auth token for the cluster.<a name="line.300"></a> +<span class="sourceLineNo">301</span> */<a name="line.301"></a> +<span class="sourceLineNo">302</span> private static Token<AuthenticationTokenIdentifier> getAuthToken(Configuration conf, User user)<a name="line.302"></a> +<span class="sourceLineNo">303</span> throws IOException, InterruptedException {<a name="line.303"></a> +<span class="sourceLineNo">304</span> ZKWatcher zkw = new ZKWatcher(conf, "TokenUtil-getAuthToken", null);<a name="line.304"></a> +<span class="sourceLineNo">305</span> try {<a name="line.305"></a> +<span class="sourceLineNo">306</span> String clusterId = ZKClusterId.readClusterIdZNode(zkw);<a name="line.306"></a> +<span class="sourceLineNo">307</span> if (clusterId == null) {<a name="line.307"></a> +<span class="sourceLineNo">308</span> throw new IOException("Failed to get cluster ID");<a name="line.308"></a> +<span class="sourceLineNo">309</span> }<a name="line.309"></a> +<span class="sourceLineNo">310</span> return new AuthenticationTokenSelector().selectToken(new Text(clusterId), user.getTokens());<a name="line.310"></a> +<span class="sourceLineNo">311</span> } catch (KeeperException e) {<a name="line.311"></a> +<span class="sourceLineNo">312</span> throw new IOException(e);<a name="line.312"></a> +<span class="sourceLineNo">313</span> } finally {<a name="line.313"></a> +<span class="sourceLineNo">314</span> zkw.close();<a name="line.314"></a> +<span class="sourceLineNo">315</span> }<a name="line.315"></a> +<span class="sourceLineNo">316</span> }<a name="line.316"></a> +<span class="sourceLineNo">317</span><a name="line.317"></a> +<span class="sourceLineNo">318</span> /**<a name="line.318"></a> +<span class="sourceLineNo">319</span> * Converts a protobuf Token message back into a Token instance.<a name="line.319"></a> +<span class="sourceLineNo">320</span> *<a name="line.320"></a> +<span class="sourceLineNo">321</span> * @param proto the protobuf Token message<a name="line.321"></a> +<span class="sourceLineNo">322</span> * @return the Token instance<a name="line.322"></a> +<span class="sourceLineNo">323</span> */<a name="line.323"></a> +<span class="sourceLineNo">324</span> public static Token<AuthenticationTokenIdentifier> toToken(AuthenticationProtos.Token proto) {<a name="line.324"></a> +<span class="sourceLineNo">325</span> return new Token<>(<a name="line.325"></a> +<span class="sourceLineNo">326</span> proto.hasIdentifier() ? proto.getIdentifier().toByteArray() : null,<a name="line.326"></a> +<span class="sourceLineNo">327</span> proto.hasPassword() ? proto.getPassword().toByteArray() : null,<a name="line.327"></a> +<span class="sourceLineNo">328</span> AuthenticationTokenIdentifier.AUTH_TOKEN_TYPE,<a name="line.328"></a> +<span class="sourceLineNo">329</span> proto.hasService() ? new Text(proto.getService().toStringUtf8()) : null);<a name="line.329"></a> +<span class="sourceLineNo">330</span> }<a name="line.330"></a> +<span class="sourceLineNo">331</span>}<a name="line.331"></a>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/export_control.html ---------------------------------------------------------------------- diff --git a/export_control.html b/export_control.html index 5c97e2c..e9be28e 100644 --- a/export_control.html +++ b/export_control.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Export Control @@ -336,7 +336,7 @@ for more details.</p> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/checkstyle.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/checkstyle.html b/hbase-annotations/checkstyle.html index a642aa7..6538895 100644 --- a/hbase-annotations/checkstyle.html +++ b/hbase-annotations/checkstyle.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Checkstyle Results</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -150,7 +150,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/dependencies.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/dependencies.html b/hbase-annotations/dependencies.html index d0e5e20..2e71aff 100644 --- a/hbase-annotations/dependencies.html +++ b/hbase-annotations/dependencies.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Dependencies</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -272,7 +272,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/dependency-convergence.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/dependency-convergence.html b/hbase-annotations/dependency-convergence.html index 5db360a..2993959 100644 --- a/hbase-annotations/dependency-convergence.html +++ b/hbase-annotations/dependency-convergence.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Reactor Dependency Convergence</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -865,7 +865,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/dependency-info.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/dependency-info.html b/hbase-annotations/dependency-info.html index 67be028..67275f4 100644 --- a/hbase-annotations/dependency-info.html +++ b/hbase-annotations/dependency-info.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Dependency Information</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -147,7 +147,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/dependency-management.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/dependency-management.html b/hbase-annotations/dependency-management.html index 1137b51..d81f2c4 100644 --- a/hbase-annotations/dependency-management.html +++ b/hbase-annotations/dependency-management.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Dependency Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -810,7 +810,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/index.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/index.html b/hbase-annotations/index.html index 21b9f5a..81e7355 100644 --- a/hbase-annotations/index.html +++ b/hbase-annotations/index.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – About</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -119,7 +119,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/integration.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/integration.html b/hbase-annotations/integration.html index 60cbaed..570a58b 100644 --- a/hbase-annotations/integration.html +++ b/hbase-annotations/integration.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – CI Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -126,7 +126,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/issue-tracking.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/issue-tracking.html b/hbase-annotations/issue-tracking.html index 75d5460..757d723 100644 --- a/hbase-annotations/issue-tracking.html +++ b/hbase-annotations/issue-tracking.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Issue Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -123,7 +123,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/license.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/license.html b/hbase-annotations/license.html index b89b50d..4640baa 100644 --- a/hbase-annotations/license.html +++ b/hbase-annotations/license.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Licenses</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -326,7 +326,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/mail-lists.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/mail-lists.html b/hbase-annotations/mail-lists.html index 32649cf..340ba39 100644 --- a/hbase-annotations/mail-lists.html +++ b/hbase-annotations/mail-lists.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Mailing Lists</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -176,7 +176,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/plugin-management.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/plugin-management.html b/hbase-annotations/plugin-management.html index 8f11fb5..2f30465 100644 --- a/hbase-annotations/plugin-management.html +++ b/hbase-annotations/plugin-management.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Plugin Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -271,7 +271,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/plugins.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/plugins.html b/hbase-annotations/plugins.html index d04dfa0..e9c3832 100644 --- a/hbase-annotations/plugins.html +++ b/hbase-annotations/plugins.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Plugins</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -222,7 +222,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/project-info.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/project-info.html b/hbase-annotations/project-info.html index c8392e3..6df98ab 100644 --- a/hbase-annotations/project-info.html +++ b/hbase-annotations/project-info.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Information</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -167,7 +167,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/project-reports.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/project-reports.html b/hbase-annotations/project-reports.html index 2418f28..f3630a5 100644 --- a/hbase-annotations/project-reports.html +++ b/hbase-annotations/project-reports.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Generated Reports</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -128,7 +128,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/project-summary.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/project-summary.html b/hbase-annotations/project-summary.html index 7e562d1..71713f6 100644 --- a/hbase-annotations/project-summary.html +++ b/hbase-annotations/project-summary.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Summary</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -166,7 +166,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/source-repository.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/source-repository.html b/hbase-annotations/source-repository.html index b68d324..0bf22e9 100644 --- a/hbase-annotations/source-repository.html +++ b/hbase-annotations/source-repository.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Source Code Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -134,7 +134,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-annotations/team-list.html ---------------------------------------------------------------------- diff --git a/hbase-annotations/team-list.html b/hbase-annotations/team-list.html index 775cc97..de0d4cd 100644 --- a/hbase-annotations/team-list.html +++ b/hbase-annotations/team-list.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Annotations – Project Team</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -553,7 +553,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-build-configuration/dependencies.html ---------------------------------------------------------------------- diff --git a/hbase-build-configuration/dependencies.html b/hbase-build-configuration/dependencies.html index 0c178c7..b4e7359 100644 --- a/hbase-build-configuration/dependencies.html +++ b/hbase-build-configuration/dependencies.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Build Configuration – Project Dependencies</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -330,7 +330,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-build-configuration/dependency-convergence.html ---------------------------------------------------------------------- diff --git a/hbase-build-configuration/dependency-convergence.html b/hbase-build-configuration/dependency-convergence.html index 0255157..bea0d82 100644 --- a/hbase-build-configuration/dependency-convergence.html +++ b/hbase-build-configuration/dependency-convergence.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Build Configuration – Reactor Dependency Convergence</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -865,7 +865,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-build-configuration/dependency-info.html ---------------------------------------------------------------------- diff --git a/hbase-build-configuration/dependency-info.html b/hbase-build-configuration/dependency-info.html index 083a121..fa6735c 100644 --- a/hbase-build-configuration/dependency-info.html +++ b/hbase-build-configuration/dependency-info.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Build Configuration – Dependency Information</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -148,7 +148,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-build-configuration/dependency-management.html ---------------------------------------------------------------------- diff --git a/hbase-build-configuration/dependency-management.html b/hbase-build-configuration/dependency-management.html index a0f0c76..80b20f1 100644 --- a/hbase-build-configuration/dependency-management.html +++ b/hbase-build-configuration/dependency-management.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Build Configuration – Project Dependency Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -810,7 +810,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-build-configuration/hbase-archetypes/dependencies.html ---------------------------------------------------------------------- diff --git a/hbase-build-configuration/hbase-archetypes/dependencies.html b/hbase-build-configuration/hbase-archetypes/dependencies.html index 7376925..7d9320c 100644 --- a/hbase-build-configuration/hbase-archetypes/dependencies.html +++ b/hbase-build-configuration/hbase-archetypes/dependencies.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Archetypes – Project Dependencies</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -330,7 +330,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/193b4259/hbase-build-configuration/hbase-archetypes/dependency-convergence.html ---------------------------------------------------------------------- diff --git a/hbase-build-configuration/hbase-archetypes/dependency-convergence.html b/hbase-build-configuration/hbase-archetypes/dependency-convergence.html index cb35ae0..fc25eb5 100644 --- a/hbase-build-configuration/hbase-archetypes/dependency-convergence.html +++ b/hbase-build-configuration/hbase-archetypes/dependency-convergence.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180216" /> + <meta name="Date-Revision-yyyymmdd" content="20180217" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase - Archetypes – Reactor Dependency Convergence</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -865,7 +865,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-02-16</li> + <li id="publishDate" class="pull-right">Last Published: 2018-02-17</li> </p> </div>