[ 
https://issues.apache.org/jira/browse/TEZ-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14086575#comment-14086575
 ] 

Siddharth Seth commented on TEZ-1368:
-------------------------------------

[~rajesh.balamohan] - the patch looks good mostly.
Minor changes. Instead of 
{code}
-    OrderedPartitionedKVEdgeConfigurer edgeConf1 = 
OrderedPartitionedKVEdgeConfigurer
-        .newBuilder(Text.class.getName(), IntWritable.class.getName(),
-            HashPartitioner.class.getName(), 
null).configureInput().useLegacyInput().done().build();
+    
ShuffledMergedInputConfiguration.SpecificBuilder<OrderedPartitionedKVEdgeConfigurer.Builder>
+        edgeBuilder1 =
+        OrderedPartitionedKVEdgeConfigurer.newBuilder(Text.class.getName(),
+            IntWritable.class.getName(),
+            HashPartitioner.class.getName(), 
null).configureInput().useLegacyInput()
+            .setFromConfiguration(conf);
+    if 
(conf.getBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_ENABLE_SSL, 
false)) {
+      edgeBuilder1.enableEncryptedTransfer();
+    }
{code}
This can be changed to use setFromConfiguration - which should just pick up the 
relevant SSL settings. That's the preferred method for now. Alternately, in the 
main configurer itself - it should be possible to say 
".configureInput.enableEncryptedTransfer" - but it looks like the API does not 
allow this at the moment. I think we should file another jira to change such 
methods (enableEncryption / enableCompression) - to instead accept parameters - 
which then allows them to be used via conditionals. We also need to mark the 
configureInput/configureOutput as private for 0.5.
For now though, setFromConfiguration shuold be adequate.

> TestSecureShuffle failing
> -------------------------
>
>                 Key: TEZ-1368
>                 URL: https://issues.apache.org/jira/browse/TEZ-1368
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Siddharth Seth
>            Assignee: Rajesh Balamohan
>            Priority: Blocker
>         Attachments: TEZ-1368.1.patch, TEZ-1368.2.patch
>
>
> The test is timing out.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to