<?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 Re: FileSystem create exception IllegalArgumentException: &amp;quot;TLSv1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48408#M48196</link>
    <description>Kinit needed? Maybe? Seems like a kerberos heavy stack trace.</description>
    <pubDate>Fri, 09 Dec 2016 06:21:02 GMT</pubDate>
    <dc:creator>ben.hemphill</dc:creator>
    <dc:date>2016-12-09T06:21:02Z</dc:date>
    <item>
      <title>FileSystem create exception IllegalArgumentException: "TLSv1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48366#M48194</link>
      <description>&lt;P&gt;CDH 5.7.3 with services HBase, HDFS, YARN, ZooKeeper, Kerberos, TLS/SSL on services, Key Trustee KMS, KeyTrustee Server Cluster all services running green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When making a the call&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.hadoop.fs.FileSystem.create(testFile, 1) // 1 being replication&lt;/P&gt;&lt;P&gt;Results in an IOException&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; message&amp;nbsp;[java.lang.IllegalArgumentException: "TLSv1], cause java.lang.IllegalArgumentException: "TLSv1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea of what this&amp;nbsp;may mean?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 22:26:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48366#M48194</guid>
      <dc:creator>spv</dc:creator>
      <dc:date>2016-12-07T22:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: FileSystem create exception IllegalArgumentException: "TLSv1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48367#M48195</link>
      <description>&lt;P&gt;Here is the full stack trace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.io.IOException: java.lang.IllegalArgumentException: "TLSv1&lt;BR /&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:491)&lt;BR /&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.decryptEncryptedKey(KMSClientProvider.java:776)&lt;BR /&gt;at org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.decryptEncryptedKey(KeyProviderCryptoExtension.java:388)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSClient.decryptEncryptedDataEncryptionKey(DFSClient.java:1381)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSClient.createWrappedOutputStream(DFSClient.java:1483)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSClient.createWrappedOutputStream(DFSClient.java:1468)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$7.doCall(DistributedFileSystem.java:451)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$7.doCall(DistributedFileSystem.java:444)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:459)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:387)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:890)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:816)&lt;BR /&gt;at com.attivio.commandline.hadoopchecker.AbstractHadoopChecker.testHDFS(AbstractHadoopChecker.java:128)&lt;BR /&gt;at com.attivio.commandline.hadoopchecker.HDFSChecker.internalRun(HDFSChecker.java:26)&lt;BR /&gt;at com.attivio.commandline.hadoopchecker.AbstractHadoopChecker.runTest(AbstractHadoopChecker.java:95)&lt;BR /&gt;at com.attivio.slider.commandline.hadoopchecker.HadoopChecker.runTest(HadoopChecker.java:31)&lt;BR /&gt;at com.attivio.slider.commandline.hadoopchecker.HadoopChecker.internalRun(HadoopChecker.java:66)&lt;BR /&gt;at com.attivio.commandline.hadoopchecker.AbstractHadoopChecker.runTest(AbstractHadoopChecker.java:95)&lt;BR /&gt;at com.attivio.commandline.hadoopchecker.AbstractHadoopChecker.run(AbstractHadoopChecker.java:90)&lt;BR /&gt;at com.attivio.commandline.CommandLineRunner.execute(CommandLineRunner.java:163)&lt;BR /&gt;at com.attivio.commandline.CommandLineRunner.execute(CommandLineRunner.java:186)&lt;BR /&gt;at com.attivio.commandline.CommandLineRunner.main(CommandLineRunner.java:182)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:497)&lt;BR /&gt;at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)&lt;BR /&gt;at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)&lt;BR /&gt;Caused by: java.lang.IllegalArgumentException: "TLSv1&lt;BR /&gt;at sun.security.ssl.ProtocolVersion.valueOf(ProtocolVersion.java:187)&lt;BR /&gt;at sun.security.ssl.ProtocolList.convert(ProtocolList.java:84)&lt;BR /&gt;at sun.security.ssl.ProtocolList.&amp;lt;init&amp;gt;(ProtocolList.java:52)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.setEnabledProtocols(SSLSocketImpl.java:2504)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:463" target="_blank"&gt;www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:463&lt;/A&gt;)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185" target="_blank"&gt;www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185&lt;/A&gt;)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153" target="_blank"&gt;www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153&lt;/A&gt;)&lt;BR /&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:190)&lt;BR /&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:128)&lt;BR /&gt;at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)&lt;BR /&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322)&lt;BR /&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:483)&lt;BR /&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:478)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)&lt;BR /&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:478)&lt;BR /&gt;... 29 more&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 22:41:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48367#M48195</guid>
      <dc:creator>spv</dc:creator>
      <dc:date>2016-12-07T22:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: FileSystem create exception IllegalArgumentException: "TLSv1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48408#M48196</link>
      <description>Kinit needed? Maybe? Seems like a kerberos heavy stack trace.</description>
      <pubDate>Fri, 09 Dec 2016 06:21:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48408#M48196</guid>
      <dc:creator>ben.hemphill</dc:creator>
      <dc:date>2016-12-09T06:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: FileSystem create exception IllegalArgumentException: "TLSv1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48409#M48197</link>
      <description>&lt;P&gt;From the stray quote in your exception, it would seem like something in your client program (the &lt;EM&gt;com.install4j.runtime.launcher.UnixLauncher&lt;/EM&gt; class invocation script, the &lt;EM&gt;com.attivio.commandline.CommandLineRunner&lt;/EM&gt;, etc.) has incorrectly set the JDK used system property of "https.protocols" to a value of "TLSv1" with the quotes partially included.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there is an override of "&lt;STRONG&gt;https.protocols&lt;/STRONG&gt;" required on your JDK (such as is needed for using TLSv1.2 in JDK7 environments [1]) then please modify it to pass the value correctly without the quote wrapped around it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For ex. this is a good way to set it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Dhttps.protocols=TLSv1.2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this isn't gonna work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-Dhttps.protocols="TLSv1.2"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your error, if I were to guess, it seems to instead be set to something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-Dhttps.protocols="TLSv1,2"&lt;/STRONG&gt;&lt;/EM&gt;, which gives rise to the literal error of &lt;EM&gt;&lt;STRONG&gt;java.lang.IllegalArgumentException: &lt;U&gt;"TLSv1&lt;/U&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] -&amp;nbsp;&lt;A href="https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https" target="_blank"&gt;https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https&lt;/A&gt;&lt;/P&gt;&lt;P&gt;X-Refs:&amp;nbsp;&lt;A href="http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/sun/net/www/protocol/https/HttpsClient.java#l161" target="_blank"&gt;http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/sun/net/www/protocol/https/HttpsClient.java#l161&lt;/A&gt; and&amp;nbsp;&lt;A href="http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/sun/security/ssl/ProtocolVersion.java#l164" target="_blank"&gt;http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/sun/security/ssl/ProtocolVersion.java#l164&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 06:37:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-create-exception-IllegalArgumentException-quot/m-p/48409#M48197</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-12-09T06:37:52Z</dc:date>
    </item>
  </channel>
</rss>

