powered by Jive Software

Where does Linux Spark install?

Just installed Spark from .rpm, it printed a few warnings and that was it:

$ sudo rpm -Uvh spark-2.6.3.src.rpm Updating / installing...
   1:Spark-2.6.3.12555-1              ################################# [100%]
warning: user j2ee-bamboo does not exist - using root
warning: group j2ee-bamboo does not exist - using root
warning: user j2ee-bamboo does not exist - using root
warning: group j2ee-bamboo does not exist - using root
warning: user j2ee-bamboo does not exist - using root
warning: group j2ee-bamboo does not exist - using root

Nothing new appeared in the KDE Internet menu…

$ spark
bash: spark: command not found

[user0@lion Downloads]$ which spark
/usr/bin/which: no spark in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin: /usr/sbin:/home/user0/.local/bin:/home/user0/bin)

How can I run Spark?

You installed the src RPM, which does not contain the binary. These are for development purposes as it has the source code and build procedure.

daryl

How do I build and install from source RPM would be answer looked for. Thank you!

$ rpmbuild --rebuild spark-2.6.3.src.rpm Installing spark-2.6.3.src.rpm
warning: user j2ee-bamboo does not exist - using root
warning: group j2ee-bamboo does not exist - using root
warning: user j2ee-bamboo does not exist - using root
warning: group j2ee-bamboo does not exist - using root
warning: user j2ee-bamboo does not exist - using root
warning: group j2ee-bamboo does not exist - using root
error: File /home/user0/rpmbuild/SOURCES/%{SPARK_SOURCE}: No such file or directory

Daryl:

The binary RPM does not install in Fedora 19:

$ sudo yum install -y spark-2.6.3.rpm Loaded plugins: fastestmirror, langpacks, local, refresh-packagekit
Examining spark-2.6.3.rpm: Spark-2.6.3.12555-1.x86_64
Marking spark-2.6.3.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package Spark.x86_64 0:2.6.3.12555-1 will be installed
--> Processing Dependency: libXp.so.6 for package: Spark-2.6.3.12555-1.x86_64
Loading mirror speeds from cached hostfile * fedora: fedora.mirror.iweb.com * rpmfusion-free: mirror.nexcess.net * rpmfusion-free-updates: mirror.nexcess.net * rpmfusion-nonfree: mirror.nexcess.net * rpmfusion-nonfree-updates: mirror.nexcess.net * updates: fedora.mirror.iweb.com
--> Processing Dependency: libXtst.so.6 for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libasound.so.2 for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libasound.so.2(ALSA_0.9) for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libodbc.so for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libodbcinst.so for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libstdc++.so.5 for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libstdc++.so.5(CXXABI_1.2) for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2) for package: Spark-2.6.3.12555-1.x86_64
--> Running transaction check
---> Package Spark.x86_64 0:2.6.3.12555-1 will be installed
--> Processing Dependency: libodbc.so for package: Spark-2.6.3.12555-1.x86_64
--> Processing Dependency: libodbcinst.so for package: Spark-2.6.3.12555-1.x86_64
---> Package alsa-lib.i686 0:1.0.27.2-1.fc19 will be installed
---> Package compat-libstdc++-33.i686 0:3.2.3-68.7 will be installed
---> Package libXp.i686 0:1.0.2-1.fc19 will be installed
---> Package libXtst.i686 0:1.2.2-1.fc19 will be installed
--> Finished Dependency Resolution
Error: Package: Spark-2.6.3.12555-1.x86_64 (/spark-2.6.3)
           Requires: libodbcinst.so
Error: Package: Spark-2.6.3.12555-1.x86_64 (/spark-2.6.3)
           Requires: libodbc.so You could try using --skip-broken

I installed unixODBC to satisfy libodbc.so but it still showed the same message. Can you tell me what prerequisits have to be installed?

Update: It seems that there is something very wrong with the package, as rpm is simply lying about the dependencies.

$ ls -l /usr/lib/libodbc*
lrwxrwxrwx 1 root root     18 Jan 12 09:35 /usr/lib/libodbccr.so.2 -> libodbccr.so.2.0.0
-rwxr-xr-x 1 root root  40316 Oct 10 10:23 /usr/lib/libodbccr.so.2.0.0
lrwxrwxrwx 1 root root     24 Jan 12 09:35 /usr/lib/libodbcdrvcfg1S.so.2 -> libodbcdrvcfg1S.so.2.0.0
-rwxr-xr-x 1 root root   6300 Oct 10 10:23 /usr/lib/libodbcdrvcfg1S.so.2.0.0
lrwxrwxrwx 1 root root     24 Jan 12 09:35 /usr/lib/libodbcdrvcfg2S.so.2 -> libodbcdrvcfg2S.so.2.0.0
-rwxr-xr-x 1 root root   6240 Oct 10 10:23 /usr/lib/libodbcdrvcfg2S.so.2.0.0
lrwxrwxrwx 1 root root     20 Jan 12 09:35 /usr/lib/libodbcinst.so -> libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     20 Jan 12 09:35 /usr/lib/libodbcinst.so.2 -> libodbcinst.so.2.0.0
-rwxr-xr-x 1 root root  73592 Oct 10 10:23 /usr/lib/libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     21 Jan 12 09:35 /usr/lib/libodbcminiS.so.2 -> libodbcminiS.so.2.0.0
-rwxr-xr-x 1 root root   6304 Oct 10 10:23 /usr/lib/libodbcminiS.so.2.0.0
lrwxrwxrwx 1 root root     19 Jan 12 09:35 /usr/lib/libodbcmyS.so -> libodbcmyS.so.2.0.0
lrwxrwxrwx 1 root root     19 Jan 12 09:35 /usr/lib/libodbcmyS.so.2 -> libodbcmyS.so.2.0.0
-rwxr-xr-x 1 root root  10408 Oct 10 10:23 /usr/lib/libodbcmyS.so.2.0.0
lrwxrwxrwx 1 root root     19 Jan 12 09:35 /usr/lib/libodbcnnS.so.2 -> libodbcnnS.so.2.0.0
-rwxr-xr-x 1 root root   6296 Oct 10 10:23 /usr/lib/libodbcnnS.so.2.0.0
lrwxrwxrwx 1 root root     21 Jan 12 09:35 /usr/lib/libodbcpsqlS.so -> libodbcpsqlS.so.2.0.0
lrwxrwxrwx 1 root root     21 Jan 12 09:35 /usr/lib/libodbcpsqlS.so.2 -> libodbcpsqlS.so.2.0.0
-rwxr-xr-x 1 root root  10440 Oct 10 10:23 /usr/lib/libodbcpsqlS.so.2.0.0
lrwxrwxrwx 1 root root     16 Jan 12 09:35 /usr/lib/libodbc.so -> libodbc.so.2.0.0
lrwxrwxrwx 1 root root     16 Jan 12 09:35 /usr/lib/libodbc.so.2 -> libodbc.so.2.0.0
-rwxr-xr-x 1 root root 455792 Oct 10 10:23 /usr/lib/libodbc.so.2.0.0
lrwxrwxrwx 1 root root     20 Jan 12 09:35 /usr/lib/libodbctxtS.so.2 -> libodbctxtS.so.2.0.0
-rwxr-xr-x 1 root root   6324 Oct 10 10:23 /usr/lib/libodbctxtS.so.2.0.0 $ ls -l /usr/lib64/libodbc*
lrwxrwxrwx 1 root root     18 Jan 12 09:25 /usr/lib64/libodbccr.so.2 -> libodbccr.so.2.0.0
-rwxr-xr-x 1 root root  44792 Oct 10 10:23 /usr/lib64/libodbccr.so.2.0.0
lrwxrwxrwx 1 root root     24 Jan 12 09:25 /usr/lib64/libodbcdrvcfg1S.so.2 -> libodbcdrvcfg1S.so.2.0.0
-rwxr-xr-x 1 root root   7032 Oct 10 10:23 /usr/lib64/libodbcdrvcfg1S.so.2.0.0
lrwxrwxrwx 1 root root     24 Jan 12 09:25 /usr/lib64/libodbcdrvcfg2S.so.2 -> libodbcdrvcfg2S.so.2.0.0
-rwxr-xr-x 1 root root   6928 Oct 10 10:23 /usr/lib64/libodbcdrvcfg2S.so.2.0.0
lrwxrwxrwx 1 root root     20 Jan 12 09:25 /usr/lib64/libodbcinst.so -> libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     20 Jan 12 09:25 /usr/lib64/libodbcinst.so.2 -> libodbcinst.so.2.0.0
-rwxr-xr-x 1 root root  74296 Oct 10 10:23 /usr/lib64/libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     21 Jan 12 09:25 /usr/lib64/libodbcminiS.so.2 -> libodbcminiS.so.2.0.0
-rwxr-xr-x 1 root root   7024 Oct 10 10:23 /usr/lib64/libodbcminiS.so.2.0.0
lrwxrwxrwx 1 root root     19 Jan 12 09:25 /usr/lib64/libodbcmyS.so -> libodbcmyS.so.2.0.0
lrwxrwxrwx 1 root root     19 Jan 12 09:25 /usr/lib64/libodbcmyS.so.2 -> libodbcmyS.so.2.0.0
-rwxr-xr-x 1 root root  11160 Oct 10 10:23 /usr/lib64/libodbcmyS.so.2.0.0
lrwxrwxrwx 1 root root     19 Jan 12 09:25 /usr/lib64/libodbcnnS.so.2 -> libodbcnnS.so.2.0.0
-rwxr-xr-x 1 root root   7032 Oct 10 10:23 /usr/lib64/libodbcnnS.so.2.0.0
lrwxrwxrwx 1 root root     21 Jan 12 09:25 /usr/lib64/libodbcpsqlS.so -> libodbcpsqlS.so.2.0.0
lrwxrwxrwx 1 root root     21 Jan 12 09:25 /usr/lib64/libodbcpsqlS.so.2 -> libodbcpsqlS.so.2.0.0
-rwxr-xr-x 1 root root  11200 Oct 10 10:23 /usr/lib64/libodbcpsqlS.so.2.0.0
lrwxrwxrwx 1 root root     16 Jan 12 09:25 /usr/lib64/libodbc.so -> libodbc.so.2.0.0
lrwxrwxrwx 1 root root     16 Jan 12 09:25 /usr/lib64/libodbc.so.2 -> libodbc.so.2.0.0
-rwxr-xr-x 1 root root 428280 Oct 10 10:23 /usr/lib64/libodbc.so.2.0.0
lrwxrwxrwx 1 root root     20 Jan 12 09:25 /usr/lib64/libodbctxtS.so.2 -> libodbctxtS.so.2.0.0
-rwxr-xr-x 1 root root  11160 Oct 10 10:23 /usr/lib64/libodbctxtS.so.2.0.0

Both 32 and 64 bit libs are in place, so something in the rpm is screwed.

tar.gz does not work either, as after de-compressing Spark into /usr/local/share and running Spark it prints:

$ ./Spark
ls: cannot access /usr/local/share/Spark/lib/windows: No such file or directory

It is looking for windows, but the folder is windows64.

Do you have a working Linux copy of Spark anywhere that I could download and use?