Home Forums HDP on Linux – Installation Manual Installation Ganglia

This topic contains 1 reply, has 1 voice, and was last updated by  Gwenael Le Barzic 9 months ago.

  • Creator
    Topic
  • #49345

    Gwenael Le Barzic
    Participant

    Hello !

    I’m trying to install Ganglia on the following architecture :
    – 1 master
    – 3 slaves

    I already installed Hadoop and some other components thanks to Ambari 1.4.4.23. But I didn’t install Ganglia at this time.

    So, in order to install Ganglia, I downloaded the companion tar.gz file, and followed all the manual installation guide for Ganglia :

    At the end of the installation guide, there are some steps to validate the installation. On the Ganglia master node, which is also my master node for Hadoop, I tried the following command :

    [root@master ~]# /etc/init.d/hdp-gmetad start
    =============================
    Starting hdp-gmetad...
    =============================
    Failed to create base directory '-B': Permission denied
    chgrp: impossible d'accéder à « /var/run/ganglia/hdp/rrdcached.sock »: Auc
    un fichier ou dossier de ce type
    chgrp: impossible d'accéder à « /var/run/ganglia/hdp/rrdcached.limited.sockÂ
    »: Aucun fichier ou dossier de ce type
    Failed to start /usr/bin/rrdcached
    Not starting /usr/sbin/gmetad because starting /usr/bin/rrdcached failed.

    I investigated this problem and found that the problem was coming from a variable which is not set. This is why there is an error in the creation of the base directory.

    I create a second topic for this problem, because my previous one was more concerning a problem in my own repo folder.

    su - ${GMETAD_USER} -c "${RRDCACHED_BIN} -p ${RRDCACHED_PID_FILE} \
    -m 664 -l unix:${RRDCACHED_ALL_ACCESS_UNIX_SOCKET} \
    -m 777 -P FLUSH,STATS,HELP -l unix:${RRDCACHED_LIMITED_ACCESS_UNIX_SOCKET} \
    -b ${RRDCACHED_BASE_DIR} -B"

    Which gives this once I echoed it after the run of the script :
    su nobody -c /usr/bin/rrdcached -p /var/run/ganglia/hdp/rrdcached.pid
    -m 664 -l unix:/var/run/ganglia/hdp/rrdcached.sock
    -m 777 -P FLUSH,STATS,HELP -l unix:/var/run/ganglia/hdp/rrdcached.limited.sock
    -b -B

    Seems like ${RRDCACHED_BASE_DIR} is not set.

    Do you have any idea what I can test, where I can investigate to understand what is going on ?

    Best regards.

    Gwenael

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #49346

    Gwenael Le Barzic
    Participant

    Just as a note, on the three slaves, the start of /etc/init.d/hdp-gmond start worked fine.

    In the contrary, on the master, even the command “/etc/init.d/hdp-gmetad start ” failed with the following error message :
    [root@master ~]# /etc/init.d/hdp-gmond start
    =============================
    Starting hdp-gmond...
    =============================
    Failed to start /usr/sbin/gmond for cluster HDPHistoryServer

    For your information here is the list of components by host :

    <u>On the master :</u>
    DataNode
    HCat
    HDFS Client
    History Server
    Hive Client
    Hive Metastore
    HiveServer2
    MapReduce2 Client
    MySQL Server
    NameNode
    NodeManager
    Oozie Client
    Oozie Server
    Pig
    ResourceManager
    SNameNode
    WebHCat Server
    YARN Client
    ZooKeeper Client
    ZooKeeper Serve

    <u>Slave 1</u>
    DataNode
    NodeManager
    ZooKeeper Server

    <u>Slave 2</u>
    DataNode
    NodeManager
    ZooKeeper Server

    <u>Slave 3</u>
    DataNode
    NodeManager
    ZooKeeper Server

    Best regards.

    Gwenael

    Collapse
Viewing 1 replies (of 1 total)