You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Q. I named my hadoop distribution file hadoop-2.6.0.tgz, but Myriad is trying to download a file named "binary.tgz"

A. Myriad renames the hadoop distro file to binary.tgz

Q. Why do I get this download error?

Download Error

Failed to fetch 'http://localhost:9192/api/artifacts/binary.tgz': Error downloading resource: Failure when receiving data from the peer
Failed to synchronize with slave (it's probably exited)

A. One possibility is that the binary.tgz file containing the hadoop distro has not been uploaded to hdfs per this configuration within myriad-config-default.yml:

Tar Files Configuration

servedConfigPath: dist/config.tgz
servedBinaryPath: dist/hadoop-2.6.0.tgz

So, in the case of this configuration example, simply upload the config.tgz file (that contains the etc/hadoop files) and the hadoop-2.6.0.tgz file (contains hadoop distribution being used) into the /dist directory of hdfs.

The other possibility is that the relative local directory path to the binary.tgz file–in this case, dist/hadoop-2.6.0.tgz–either does not exist or the directory from which you are launching the resource manager is not $YARN_HOME directory. For the former, create the directory and place the config.tgz and binary.tgz (again, in this case, hadoop-2.6.0.tgz) in that directory.  For the latter, cd to $YARN_HOME and then launch the Resource Manager via bin/yarn resourcemanager. 

Q. I have passwordless sudo for the frameworkUser and/or my frameworkUser is root, so why am I getting this error:

sudoless user error

sudo: sorry, you must have a tty to run sudo

A. This means the sudoers file default is set requiring a tty session as detailed here. To fix, do the following:

Fix tty error
sudo su root
visudo
#Comment or delete the following line:
Defaults    requiretty
  • No labels