The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Hortonworks Sandbox Forum

libhdfs testing

  • #45047
    Stephen Bovy

    I am trying to use the sandbox to do some libhdfs regression testing ::

    I need to regression test the thread support with the thread test program This program uses “MiniHdfs”

    I am getting the following permission error :: ( suggestions would be welcome, thanks )

    I logged in as hue but did an su to root ::

    Then I execute the following :: hadoop prgrm ./TstThreadHdfs

    NOTE: the “prgrm” keyword was added by me to support libhdfs programs

    I am getting the following error ::

    nmdCreate: Builder#build error: the path component: ‘/var/lib/hadoop-hdfs’ is owned by a user who is not root and not you. Your effective user id is 0; the path is owned by user id 1004, and its permissions are 0755. Please fix this or select a different socket path.
    at Method)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.getDomainPeerServer(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.initDataXceiver(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(
    at org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(
    at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(
    at org.apache.hadoop.hdfs.MiniDFSCluster.(
    at org.apache.hadoop.hdfs.MiniDFSCluster$
    TEST_ERROR: failed on line 318 (errno: 2): got NULL from tlhCluster
    [root@sandbox suselinux-x8664]#

    I do not understand this permission error ( root ) should be able to do anything and everything without restrictions !!

  • Author
  • #45056

    Hi Stephen,

    Who owns this directory and what are the permissions of var/lib/hadoop-hdfs?
    What does the TstThreadHdfs script(?) do?



The forum ‘Hortonworks Sandbox’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.