we now have​ an RPM -initially for testing rather than anything else.

1. Building it is covered in building.md: TL;DR: run mvn -Prpm on a Linux
system with "rpm" installed. That can be linux as well as RHAT, you just
need to test the installation on a redhat VM, or a CentOS image like the
HDP sandbox.

2. Example install and test


    # rpm -Uvh slider-0.31.0-incubating_SNAPSHOT20140709153353.noarch.rpm
    Preparing...                ###########################################
[100%]
       1:slider                 ###########################################
[100%]

    # ls -l /usr/lib/slider
    total 16
    drwxr-xr-x 3 root   root   4096 Jul  9 19:57 agent
    drwxr-xr-x 2 mapred hadoop 4096 Jul  9 19:57 bin
    drwxr-xr-x 2 mapred hadoop 4096 Jul  9 19:57 conf
    drw-r--r-- 2 mapred hadoop 4096 Jul  9 19:57 lib

    # ls -l /usr/lib/slider/bin
    total 12
    -rwxr-xr-x 1 mapred hadoop 2345 Jul  9  2014 slider
    -rwxr-xr-x 1 mapred hadoop 5096 Jul  9  2014 slider.py

    # /usr/lib/slider/bin/slider version
    slider_home = "/usr/lib/slider"
    slider_jvm_opts = "-Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true
      -Xmx256m -Djava.confdir=/usr/lib/slider/conf"
    classpath = "/usr/lib/slider/lib/*:/usr/lib/slider/conf:"

    command is java -Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true -Xmx256m
      -Djava.confdir=/usr/lib/slider/conf --classpath
"/usr/lib/slider/lib/*:/usr/lib/slider/conf:" org.apache.slider.Slider
version


    2014-05-16 19:34:34,730 [main] INFO  client.RMProxy - Connecting to
ResourceManager at /0.0.0.0:8032
    2014-05-16 19:34:35,300 [main] INFO  client.SliderClient - Slider
Core-0.31.0-incubating-SNAPSHOT
    Built against commit# d44d4c1bf0
    2014-05-16 19:34:35,304 [main] INFO  client.SliderClient - Compiled
against Hadoop 2.4.0
    2014-05-16 19:34:35,310 [main] INFO  client.SliderClient - Hadoop
runtime version branch-2.4.0
    with source checksum 375b2832a6641759c6eaf6e3e998147 and build date
2014-03-31T08:31Z
    2014-05-16 19:34:35,314 [main] INFO  util.ExitUtil - Exiting with
status 0

This output shows that slider is not configured yet: the Resource manager
Address of `/0.0.0.0:8032` is invalid.

Uninstallation can also be tested

    # rpm -e slider
    # /usr/lib/slider/bin/slider version
    -bash: /usr/lib/slider/bin/slider: No such file or directory

3. Configurations go into /usr/lib/slider/conf to be manually edited

I'm not trying to do anything clever with environment variables, path
patching, hooking up to existing hadoop  installations etc. This is just
the tarball installed into a fixed location and marked as belonging to user
"mapred"

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to