Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
5 contributors

Users who have contributed to this file

@skaarthik @cyruszhang @Myasuka @jaceklaskowski @HankG
73 lines (53 sloc) 4.86 KB

Building Mobius in Linux

Requirements

The following environment variables should be set properly:

  • JAVA_HOME

Instructions

Instructions to build Mobius on Linux are same as instructions for Windows. The only change required is to use the following script files instead of .cmd files:

  • build.sh
  • clean.sh

Running Unit Tests in Linux

Running Mobius Samples in Linux

Same as instructions for Windows but using the following scripts instead of .cmd files:

  • run-samples.sh
  • sparkclr-submit.sh

Note that paths to files and syntax of the environment variables (like $SPARKCLR_HOME) will need to be updated for Linux when following the instructions for Windows.

Running Mobius Examples in Linux

Same as instructions for Windows but with Linux scripts and paths. Refer to following general instructions for running any Mobius application in Linux.

Running Mobius Applications in Linux

Requirements

Instructions

The instructions for running Mobius applications in Windows are relevant for Linux as well. With the following tweaks, the same instructions can be used to run Mobius applications in Linux.

  • Instead of RunSamples.cmd, use run-samples.sh
  • Instead of sparkclr-submit.cmd, use sparkclr-submit.sh

If you are using CentOS, Fedora, or similar Linux distributions or OS X, follow the steps desicribed below that conforms to Mono application depoyment guidelines

  • Create a script (referred to as 'prefix script') that will use Mono to execute Mobius driver application. See the linux-prefix-script.md for a sample. The name of this script will be used in the place of the name of the mobius driver application when launching sparkclr-submit.cmd
  • Update CSharpWorkerPath setting in Mobius application config (refer to the config files used in Mobius examples like the config for with Pi example) to point to CSharpWorker.sh.exe (make sure to set the correct value appropriate for the Spark mode to be used)

Mobius in Azure HDInsight Spark Cluster

  • Refer to instructions for running Mobius application in HDI

Mobius in Amazon Web Services EMR Spark Cluster

  • Follow instructions for CentOS
  • If there are issues with installing Mono following the previous step, consider doing the following to build and install Mono (instructions below are for version 4.4.1.0):
$ sudo yum -y install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
$ cd /usr/local/src
$ sudo wget http://download.mono-project.com/sources/mono/mono-4.4.1.0.tar.bz2
$ sudo tar jxf mono-4.4.1.0.tar.bz2
$ cd mono-4.4.1.0
$ sudo ./configure --prefix=/opt/mono
$ sudo make
$ sudo make install
You can’t perform that action at this time.