Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8516

fsck command does not work when executed on Windows Hadoop installation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I tried to run following command on Windows Hadoop installation

      hadoop fsck /tmp

      THis command was run as Administrator.
      The command fails with following error-
      12/06/20 00:24:55 ERROR security.UserGroupInformation: PriviledgedActionExceptio
      n as:Administrator cause:java.net.ConnectException: Connection refused: connect
      Exception in thread "main" java.net.ConnectException: Connection refused: connec
      t
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:211)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      at java.net.Socket.connect(Socket.java:529)
      at java.net.Socket.connect(Socket.java:478)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
      at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
      at sun.net.www.http.HttpClient.New(HttpClient.java:306)
      at sun.net.www.http.HttpClient.New(HttpClient.java:323)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
      onnection.java:970)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
      ction.java:911)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
      .java:836)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
      nection.java:1172)
      at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:141)
      at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma
      tion.java:1103)
      at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:110)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
      at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:182)

      /tmp is owned by Administrator
      hadoop fs -ls /
      Found 3 items
      drwxr-xr-x - Administrator supergroup 0 2012-06-08 15:08 /benchmarks
      drwxrwxrwx - Administrator supergroup 0 2012-06-11 23:00 /tmp
      drwxr-xr-x - Administrator supergroup 0 2012-06-19 17:01 /user

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tdhavle Trupti Dhavle
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: