<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question AWS APACHE SPOT: Cloudera director bootstrap failing with key error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67822#M79060</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Cloudera and am trying to use the Cloudera director to spin up an AWS cluster to test Apache Spot in accordance with the instructions given here -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://blog.cloudera.com/blog/2018/02/apache-spot-incubating-and-cloudera-on-aws-in-60-minutes/" target="_blank"&gt;https://blog.cloudera.com/blog/2018/02/apache-spot-incubating-and-cloudera-on-aws-in-60-minutes/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having installed the Cloudera director according to the instructions mentioned above, the bootstrap command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"cloudera-director bootstrap spot-director.conf"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fails for me with the following message in the logs (taken from~/.cloudera-director/logs/application.log) -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[2018-06-01 18:59:27.127 +0000] ERROR [main] - c.c.l.commands.BootstrapCommand: Failed to parse environment configuration&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;java.lang.IllegalArgumentException: Please provide either a password or a private key&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.cloudera.launchpad.common.ssh.SshCredentials.&amp;lt;init&amp;gt;(SshCredentials.java:80)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.cloudera.launchpad.common.ssh.SshCredentialsBuilder.build(SshCredentialsBuilder.java:94)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.cloudera.launchpad.templates.ConfigToSshCredentials.apply(ConfigToSshCredentials.java:92)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;spot-director.conf&lt;/STRONG&gt; references the location of my private key for ssh -&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;ssh {&lt;BR /&gt;username: ec2-user # for RHEL image&lt;BR /&gt;privateKey: ${?path_to_private_key} # with an absolute path to .pem file&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;-----&lt;BR /&gt;And I confirmed that the environment variable is set -&lt;/P&gt;&lt;P&gt;ubuntu@ip-172-31-28-149:~/apache-spot-60-min$ echo $path_to_private_key&lt;BR /&gt;/home/ubuntu/.ssh/id_rsa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what could be going wrong here ? Any help would be appreciated !&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 15:29:12 GMT</pubDate>
    <dc:creator>sg321</dc:creator>
    <dc:date>2022-09-16T15:29:12Z</dc:date>
    <item>
      <title>AWS APACHE SPOT: Cloudera director bootstrap failing with key error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67822#M79060</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Cloudera and am trying to use the Cloudera director to spin up an AWS cluster to test Apache Spot in accordance with the instructions given here -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://blog.cloudera.com/blog/2018/02/apache-spot-incubating-and-cloudera-on-aws-in-60-minutes/" target="_blank"&gt;https://blog.cloudera.com/blog/2018/02/apache-spot-incubating-and-cloudera-on-aws-in-60-minutes/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having installed the Cloudera director according to the instructions mentioned above, the bootstrap command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"cloudera-director bootstrap spot-director.conf"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fails for me with the following message in the logs (taken from~/.cloudera-director/logs/application.log) -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[2018-06-01 18:59:27.127 +0000] ERROR [main] - c.c.l.commands.BootstrapCommand: Failed to parse environment configuration&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;java.lang.IllegalArgumentException: Please provide either a password or a private key&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.cloudera.launchpad.common.ssh.SshCredentials.&amp;lt;init&amp;gt;(SshCredentials.java:80)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.cloudera.launchpad.common.ssh.SshCredentialsBuilder.build(SshCredentialsBuilder.java:94)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.cloudera.launchpad.templates.ConfigToSshCredentials.apply(ConfigToSshCredentials.java:92)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;spot-director.conf&lt;/STRONG&gt; references the location of my private key for ssh -&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;ssh {&lt;BR /&gt;username: ec2-user # for RHEL image&lt;BR /&gt;privateKey: ${?path_to_private_key} # with an absolute path to .pem file&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;-----&lt;BR /&gt;And I confirmed that the environment variable is set -&lt;/P&gt;&lt;P&gt;ubuntu@ip-172-31-28-149:~/apache-spot-60-min$ echo $path_to_private_key&lt;BR /&gt;/home/ubuntu/.ssh/id_rsa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what could be going wrong here ? Any help would be appreciated !&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 15:29:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67822#M79060</guid>
      <dc:creator>sg321</dc:creator>
      <dc:date>2022-09-16T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: AWS APACHE SPOT: Cloudera director bootstrap failing with key error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67869#M79061</link>
      <description>&lt;P&gt;Hi sg321,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your configuration appears correct, including the substitution of the environment variable for the private key path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's true that Director will not accept SSH credentials that have neither a password nor a private key defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first guess is that, despite your check that the "path_to_private_key" environment variable is set, it still isn't visible to the Director process. If it isn't visible, then the substitution using ${?path_to_private_key} doesn't happen, and the entire "privateKey" property is left out; that fits the symptoms here. Try changing the substitution to only ${path_to_private_key}, without the question mark; this way, if the substitution cannot be made, parsing will fail with an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference for HOCON substitution rules:&amp;nbsp;&lt;A href="https://github.com/lightbend/config/blob/master/HOCON.md#substitutions" target="_blank"&gt;https://github.com/lightbend/config/blob/master/HOCON.md#substitutions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My&amp;nbsp;second guess is that the ssh section you posted may be nested at the wrong location in the HOCON configuration file, and the parser is actually looking elsewhere. Is it possible for you to post your entire spot-director.conf file? If so, please do remove any passwords or other sensitive information from it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 18:41:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67869#M79061</guid>
      <dc:creator>Bill Havanki</dc:creator>
      <dc:date>2018-06-04T18:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: AWS APACHE SPOT: Cloudera director bootstrap failing with key error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67872#M79062</link>
      <description>&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the hint!&lt;/P&gt;&lt;P&gt;Careless error on my part where I forgot to "export" the environment variables in my environment variable file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was going crazy trying to check if the permissions on my private key&amp;nbsp;were correct etc, whether I needed to run the director from a different user account etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem has been resolved.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 19:07:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67872#M79062</guid>
      <dc:creator>sg321</dc:creator>
      <dc:date>2018-06-04T19:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: AWS APACHE SPOT: Cloudera director bootstrap failing with key error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67903#M79063</link>
      <description>&lt;P&gt;Great! Thanks for the follow-up.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:04:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AWS-APACHE-SPOT-Cloudera-director-bootstrap-failing-with-key/m-p/67903#M79063</guid>
      <dc:creator>Bill Havanki</dc:creator>
      <dc:date>2018-06-05T15:04:49Z</dc:date>
    </item>
  </channel>
</rss>

