> On Nov. 30, 2015, 8:51 p.m., Mike Yoder wrote:
> >

Thanks for the review Mike!

Good point, we definitely don't want to be leaking sensitive data. I've 
actually got the idea of logging the delegation token from Hadoop code base 
where it seems we're doing that a lot. I had the same concern, but it seems 
because the toString() method generates only high level summary of the DT 
without any secrets. Here is an example log line:

Kind: HDFS_DELEGATION_TOKEN, Service: 172.28.214.13:8020, Ident: 
(HDFS_DELEGATION_TOKEN token 91 for sqoop2)

So I feel that this should be fine.


- Jarek


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40625/#review108347
-----------------------------------------------------------


On Nov. 24, 2015, 12:58 a.m., Jarek Cecho wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40625/
> -----------------------------------------------------------
> 
> (Updated Nov. 24, 2015, 12:58 a.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-2709
>     https://issues.apache.org/jira/browse/SQOOP-2709
> 
> 
> Repository: sqoop-sqoop2
> 
> 
> Description
> -------
> 
> I've provided util class that can retrieve delegation token for "current" 
> user and store it in our Context that is passed to execution engine.
> 
> 
> Diffs
> -----
> 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsConstants.java
>  39ee4a3 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsExtractor.java
>  583acdd 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsFromInitializer.java
>  be837ca 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsLoader.java
>  04acd18 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsPartitioner.java
>  998b903 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsToDestroyer.java
>  2bad23a 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsToInitializer.java
>  5856371 
>   
> connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/security/SecurityUtils.java
>  PRE-CREATION 
>   
> connector/connector-hdfs/src/test/java/org/apache/sqoop/connector/hdfs/security/TestSecurityUtils.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/40625/diff/
> 
> 
> Testing
> -------
> 
> I've tested the patch on secured real cluster to make sure that it's working. 
> Sadly I did not included any integration test as our suite currently doesn't 
> have any support for MiniKDC (this is something that we will add later).
> 
> 
> Thanks,
> 
> Jarek Cecho
> 
>

Reply via email to