[ 
https://issues.apache.org/jira/browse/WHIRR-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972851#action_12972851
 ] 

Andrei Savu commented on WHIRR-165:
-----------------------------------

{code}
    File identity;
    if (clusterSpec.getPrivateKey().getRawContent() instanceof File) {
      identity = File.class.cast(clusterSpec.getPrivateKey().getRawContent());
    } else {
      identity = File.createTempFile("hadoop", "key");
      identity.deleteOnExit();
      
Files.write(ByteStreams.toByteArray(clusterSpec.getPrivateKey().getInput()), 
identity);
    }
{code}


HadoopProxy should not fail  if the key is not  stored as a FilePayload. It 
seems like it creates a temporary identity file when running ssh. 

> Hadoop integration tests fail due to WHIRR-160 changes
> ------------------------------------------------------
>
>                 Key: WHIRR-165
>                 URL: https://issues.apache.org/jira/browse/WHIRR-165
>             Project: Whirr
>          Issue Type: Bug
>          Components: service/hadoop
>            Reporter: Tom White
>            Assignee: Tom White
>            Priority: Critical
>             Fix For: 0.3.0
>
>         Attachments: WHIRR-165.patch
>
>
> The problem (described in WHIRR-164) is that keys are never stored as 
> FilePayloads and the Hadoop proxy fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to