<?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: What is the significance of /.//* in hadoop classpath? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-significance-of-in-hadoop-classpath/m-p/43995#M37188</link>
    <description>Thanks Harsh! Nice explanation!</description>
    <pubDate>Tue, 16 Aug 2016 02:28:23 GMT</pubDate>
    <dc:creator>Ravoz</dc:creator>
    <dc:date>2016-08-16T02:28:23Z</dc:date>
    <item>
      <title>What is the significance of /.//* in hadoop classpath?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-significance-of-in-hadoop-classpath/m-p/43671#M37186</link>
      <description>&lt;P&gt;[cloudera@quickstart ~]$ hadoop classpath&lt;BR /&gt;/etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/.//*:/usr/lib/hadoop-yarn/lib/*:/usr/lib/hadoop-yarn/.//*:/usr/lib/hadoop-mapreduce/lib/*:/usr/lib/hadoop-mapreduce/.//*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is what I get when I use hadoop classpath. I am wondering&amp;nbsp;what is the meaning of&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/lib/hadoop/.//*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and also&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/lib/hadoop-hdfs/./&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know that * matches anything and . stands for the current directory. But i can't make any sense of them being used like that together with double slashes (//).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:33:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-significance-of-in-hadoop-classpath/m-p/43671#M37186</guid>
      <dc:creator>Ravoz</dc:creator>
      <dc:date>2022-09-16T10:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is the significance of /.//* in hadoop classpath?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-significance-of-in-hadoop-classpath/m-p/43948#M37187</link>
      <description>There's no real significance to it, its just the way the directory detection logic works today. The double slashes on Linux get interpreted as a single one, and does not induce the behaviour in any way (same within Java's CLASSPATH parser, for which this entry is created)&lt;BR /&gt;&lt;BR /&gt;Here's where the classpath entry is being built: /usr/lib/hadoop/libexec/hadoop-config.sh (you can vi this file on your installation)&lt;BR /&gt;&lt;BR /&gt;Sourcing the variables that are being appended to CLASSPATH ('/*' is being appended to whose values) will reveal further that some of them come from the file /usr/lib/hadoop/libexec/hadoop-layout.sh (you can vi this as well) wherein they are set to './'.&lt;BR /&gt;&lt;BR /&gt;As a result the concatenation operations on these strings produce the logic:&lt;BR /&gt;&lt;BR /&gt;"/usr/lib/hadoop" (base) + "/" (separator) + "./" (specific sub-dir path) + "/*" (wildcard suffix)&lt;BR /&gt;&lt;BR /&gt;The output of such a thing would thereby appear as "/usr/lib/hadoop/.//*".&lt;BR /&gt;&lt;BR /&gt;Similar things apply to the non wildcard question, where we look to just add the directory itself onto the classpath.&lt;BR /&gt;&lt;BR /&gt;Understanding-wise this is no different in evaluation than the reduced form of:&lt;BR /&gt;&lt;BR /&gt;/etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/*:/usr/lib/hadoop-hdfs/:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/*:/usr/lib/hadoop-yarn/lib/*:/usr/lib/hadoop-yarn/*:/usr/lib/hadoop-mapreduce/lib/*:/usr/lib/hadoop-mapreduce/*&lt;BR /&gt;&lt;BR /&gt;Hope this helps in reducing the confusion.</description>
      <pubDate>Mon, 15 Aug 2016 15:41:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-significance-of-in-hadoop-classpath/m-p/43948#M37187</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-08-15T15:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: What is the significance of /.//* in hadoop classpath?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-significance-of-in-hadoop-classpath/m-p/43995#M37188</link>
      <description>Thanks Harsh! Nice explanation!</description>
      <pubDate>Tue, 16 Aug 2016 02:28:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-significance-of-in-hadoop-classpath/m-p/43995#M37188</guid>
      <dc:creator>Ravoz</dc:creator>
      <dc:date>2016-08-16T02:28:23Z</dc:date>
    </item>
  </channel>
</rss>

