AnsweredAssumed Answered

Error: hadoop already installed. Please uninstall it to continue installation

Question asked by minnow-noir on Mar 15, 2015
Latest reply on Oct 19, 2015 by nitishmane

A single-node installation of 4.0.2 failed, presumably due to the target disk already having been mounted.  After unmounting the disk and trying to run again, I get the error in the subject line.  What exactly needs removed -- certain packages? whole directories? -- so that I can move forward?


The orginal attempt failed with an error about the disk being in use:

    2015-03-14 23:04:52,198 19249 ExitDiskSetup:160 ERROR /dev/sdb failed. Error 16, Device or resource busy. Disk is used by some other module/process.['  File "/opt/mapr/server/disksetup", line 1253, in <module>\n    RunDiskSetup();\n', '  File "/opt/mapr/server/disksetup", line 1136, in RunDiskSetup\n    InitAllDisks(force);\n', '  File "/opt/mapr/server/disksetup", line 555, in InitAllDisks\n    disk.InitDevices(forceOption);\n', '  File "/opt/mapr/server/disksetup", line 429, in InitDevices\n    InitDisk(dev, forceOption);\n', '  File "/opt/mapr/server/disksetup", line 291, in InitDisk\n    AbortWithError(rc, errMsg, devicePath);\n', '  File "/opt/mapr/server/disksetup", line 190, in AbortWithError\n    stack_trace = traceback.format_stack(frame)\n']


Now when I try to reinstall, it won't let me move forward without "uninstalling Hadoop":

    2015-03-15 08:38:08,095 callbacks 42 [INFO]: Running task: [Verify Pre-Requisites]
    2015-03-15 08:38:08,096 callbacks 87 [ERROR]: localhost: hadoop already installed. Please uninstall it to continue installation
    yarn already installed. Please uninstall it to continue installation
    2015-03-15 08:38:08,096 callbacks 91 [ERROR]: failed: [localhost] => {"failed": true}
    2015-03-15 08:38:08,096 installrunner 199 [ERROR]: Host: localhost has 1 failures
    2015-03-15 08:38:08,097 common 201 [ERROR]: Control Nodes have failures. Please fix the failures and re-run the installation. For more information refer to the installer log at /opt/mapr-installer/var/mapr-installer.log


The installation apparently installs many packages before checking whether the disk is available:

    rpm -qa | grep mapr
    mapr-cldb-4.0.2.29870.GA-1.x86_64
    mapr-zookeeper-4.0.2.29870.GA-1.x86_64
    mapr-historyserver-2.5.1.29870.GA-1.x86_64
    mapr-mapreduce2-2.5.1.29870.GA-1.x86_64
    mapr-hbase-0.98.7.201501291259-1.noarch
    mapr-resourcemanager-2.5.1.29870.GA-1.x86_64
    mapr-hadoop-core-2.5.1.29870.GA-1.x86_64
    mapr-zk-internal-4.0.2.29870.GA.v3.4.5-1.x86_64
    mapr-fileserver-4.0.2.29870.GA-1.x86_64
    mapr-nodemanager-2.5.1.29870.GA-1.x86_64
    mapr-core-internal-4.0.2.29870.GA-1.x86_64
    mapr-core-4.0.2.29870.GA-1.x86_64
    mapr-nfs-4.0.2.29870.GA-1.x86_64
    mapr-mapreduce1-0.20.2.29870.GA-1.x86_64
    mapr-webserver-4.0.2.29870.GA-1.x86_64

Do I need to uninstall all mapr* packages? Anything else?

Thanks

MN






Outcomes