Skip to main content

Home

Upgrading sensors on MapR

unravel-host is Unravel's fully qualified domain name or IP address.

spark-version is the target Spark version. for example, 1.6.0, 2.0.1, 2.2.0.

hive-version is the target Hive version, for example, 1.2.0.

Warning

Only activate the sensors when there are no Hive or Spark jobs running as the restart may affect running jobs.

  1. Download the Hive Hook jar.

    Create /usr/local/unravel_client directory, if it does not exist already, and download the Hive Hook jar to this directory.

    mkdir -p /usr/local/unravel_client
    cd /usr/local/unravel_client
    wget <protocol>://<unravel_base_url>:<port>/hh/unravel-hive-<hive_version>-hook.jar 
  2. Download and unzip Spark Sensor zip.

    Create /usr/local/unravel-agent directory, if it does not exist already, and enter the directory. Download and extract Spark Sensor zip to this directory.

    mkdir -p /usr/local/unravel-agent
    cd /usr/local/unravel-agent
    wget <protocol>://<unravel_base_url>:<port>/hh/unravel-agent-pack-bin.zip
    unzip unravel-agent-pack-bin.zip
  3. (Optional) In the case of a multi-node MapR cluster, you must distribute the sensor to all the hosts using SCP.

    • SCP Hive Hook sensor

      scp -i <ssh_key> -r /usr/local/unravel_client/ ssh_user@host:/usr/local
    • SCP Spark/MR sensor

      scp -i <ssh_key> -r /usr/local/unravel-agent/ ssh_user@host:/usr/local
  4. Go to MapR Control System UI > Services and restart all the services.