<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lawren</title>
    <description>The latest articles on DEV Community by Lawren (@laurencelin).</description>
    <link>https://dev.to/laurencelin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F993261%2F0d914c0d-fa5e-449e-b6c4-e383d17a9a24.png</url>
      <title>DEV Community: Lawren</title>
      <link>https://dev.to/laurencelin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/laurencelin"/>
    <language>en</language>
    <item>
      <title>Unable to start namenode with Hadoop 3.3.0 on WSL 2</title>
      <dc:creator>Lawren</dc:creator>
      <pubDate>Tue, 20 Dec 2022 05:01:28 +0000</pubDate>
      <link>https://dev.to/laurencelin/unable-to-start-namenode-with-hadoop-330-on-wsl-2-1c6k</link>
      <guid>https://dev.to/laurencelin/unable-to-start-namenode-with-hadoop-330-on-wsl-2-1c6k</guid>
      <description>&lt;p&gt;I'm running Hadoop on WSL 2, I couldn't open the namenode interface on port 9870I'm using hadoop 3.3.0&lt;/p&gt;

&lt;p&gt;After checking service with jps, there is only secondary namenode and data node running, while the name node service is gone.&lt;/p&gt;

&lt;p&gt;Here is my core-site.xml:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;configuration&amp;gt;
&amp;lt;property&amp;gt; 
&amp;lt;name&amp;gt;fs.defaultFS&amp;lt;/name&amp;gt; 
&amp;lt;value&amp;gt;hdfs://localhost:9000&amp;lt;/value&amp;gt; 
&amp;lt;/property&amp;gt; &amp;lt;property&amp;gt; 
&amp;lt;name&amp;gt;hadoop.tmp.dir&amp;lt;/name&amp;gt; 
&amp;lt;value&amp;gt;file:/hadoop/hadoop-3.3.0/tmp&amp;lt;/value&amp;gt; 
&amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;
 &amp;lt;/property&amp;gt; 
&amp;lt;/configuration&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While running format for namenode, this query showed up:&lt;br&gt;
&lt;code&gt;Re-format filesystem in Storage Directory root= /hadoop/hadoop-3.3.0/tmp/dfs/name; location= null ? (Y or N)&lt;/code&gt;&lt;br&gt;
Then I check the log of namenode, it seems unable to read from filepath:&lt;br&gt;
&lt;code&gt;org.apache.hadoop.util.ExitUtil: Exiting with status 1: java.io.IOException: Could not parse line: Filesystem 1024-blocks Used Available Capacity Mounted on&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;How could I configure the namenode to make it run?&lt;br&gt;
Thank you for all the help!&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
  </channel>
</rss>
