RPM and Tarball Install

Prerequisites

  • Be sure that Java SE 8 (also known as JDK 1.8) is installed. See System Requirements for more information.

RPM Installation

Perform these steps on each node of your Dremio cluster:

  1. Download and install Dremio via RPM.

      $ sudo yum install dremio-<VERSION>.rpm
    
  2. (Optional) Enable dremio to start at boot.

     $ sudo chkconfig --level 3456 dremio on
    
  3. Configure Dremio. See Dremio Configuration for more information.

Default Configuration

The following configurations are created by default when you install Dremio using the RPM package.

Software/File Location
Software location /opt/dremio
dremio.conf configuration file /etc/dremio/dremio.conf
dremio-env environment configuration file /etc/dremio/dremio-env
Local path (for data location) /var/lib/dremio
Log directory /var/log/dremio
PID files directory /var/run/dremio

Changing the Dremio User and Group

The generic installation steps assume a user called dremio.

To run the Dremio daemon service under a different username (for example, testuser), apply the following changes before configuring.

  1. Update the DREMIO_USER in the /etc/sysconfig/dremio file to testuser.
  2. Apply the following permissions:
     sudo chown -R testuser:testuser /var/log/dremio
     sudo chown -R testuser:testuser /var/lib/dremio
     sudo chown -R testuser:testuser /var/run/dremio
    

Using a Tarball

Perform these steps on each node of your Dremio cluster:

  1. Create a dremio group.

     sudo groupadd -r dremio
    
  2. Create a dremio user.

     sudo useradd -r -g dremio -d /var/lib/dremio -s /sbin/nologin dremio
    
  3. Create Dremio directories.

     sudo mkdir /opt/dremio
     sudo mkdir /var/run/dremio && sudo chown dremio:dremio /var/run/dremio
     sudo mkdir /var/log/dremio && sudo chown dremio:dremio /var/log/dremio
     sudo mkdir /var/lib/dremio && sudo chown dremio:dremio /var/lib/dremio
    
  4. Unpack Dremio into the /opt/dremio directory.

     sudo tar xvf dremio-<VERSION>.tar.gz -C /opt/dremio --strip-components=1
    
  5. Create a symbolic link for the configuration folder.

     sudo ln -s /opt/dremio/conf /etc/dremio
    
  6. (Optional) Set up your service configuration (SystemD setup).

    a. Copy the unit file for the dremio daemon from <DREMIO_HOME>/share/dremio.service to /etc/systemd/system/dremio.service:

     sudo cp <DREMIO_HOME>/share/dremio.service /etc/systemd/system/dremio.service
    

    The following snippet is a sample configuration:

     [Unit]
     Description=Dremio Daemon Server
     After=syslog.target network.target
     [Service]
     Type=forking
     User=dremio
     PIDFile=/opt/dremio/run/dremio.pid
     ExecStart=/opt/dremio/bin/dremio --config /opt/dremio/conf start
     ExecStop=/opt/dremio/bin/dremio --config /opt/dremio/conf stop
     RestartForceExitStatus=3
     [Install]
     WantedBy=multi-user.target
    

    b. Restart systemd

     sudo systemctl daemon-reload
    

    c. (Optional) Enable dremio to start at boot

     sudo systemctl enable dremio
    
  7. Configure Dremio. See Dremio Configuration for more information.


results matching ""

    No results matching ""