> On Oct. 12, 2012, 12:07 a.m., Mike Percy wrote: > > I spent a little bit of time looking at this. Aside from some specific > > questions below, I have some general feedback: > > 1. Any reason why the Sink needs to be part of the API? Seems like it's > > just using it to get a string for an error message. If we want to keep > > that, we should pass the string as a component name or something. Mentioned > > below as a circular reference. > > 2. Has this been tested? Does it work? Unfortunately, there are no unit > > tests for Kerberos login or auth, mostly because it's not very easy to set > > up an environment for it. > > 3. I'm hesitant to target this for 1.3.0 since this functionality is not > > being used by the HBase Sink yet, so we would be exposing a new API that > > only one thing uses. We don't know if anything is missing that is needed by > > HBase. > > Hari Shreedharan wrote: > 1. Yep - can be fixed quite easily. > 2. No, I plan to test this soon though. This code is simply copy-pasted. > So it should not break anything. I can test it soon though. > 3. I don't think this is necessary for 1.3.0, since I don't plan to get > the Hbase stuff done by then anyway. > > Brock Noland wrote: > It would probably be a decent size project but hadoop does have code to > programmatically setup a kdc. Search for kdc on this pom > https://github.com/apache/hadoop-common/blob/trunk/hadoop-common-project/hadoop-common/pom.xml
Brock, good point. It would be very valuable for us to get that in. Agreed that it's likely a decent chunk of work. - Mike ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/7496/#review12378 ----------------------------------------------------------- On Oct. 9, 2012, 7:23 a.m., Hari Shreedharan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/7496/ > ----------------------------------------------------------- > > (Updated Oct. 9, 2012, 7:23 a.m.) > > > Review request for Flume. > > > Description > ------- > > Refactoring HDFS Sink's kerberos code to another class to make it available > to Hbase sink etc. > > > This addresses bug FLUME-1628. > https://issues.apache.org/jira/browse/FLUME-1628 > > > Diffs > ----- > > > flume-ng-sinks/flume-hdfs-sink/src/main/java/org/apache/flume/sink/hdfs/HDFSEventSink.java > 5ec9eb8 > > flume-ng-sinks/flume-hdfs-sink/src/main/java/org/apache/flume/sink/hdfs/KerberosLoginManager.java > PRE-CREATION > > Diff: https://reviews.apache.org/r/7496/diff/ > > > Testing > ------- > > > Thanks, > > Hari Shreedharan > >
