LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Need help (badly) on installing Spark on CentOS6.3 (https://www.linuxquestions.org/questions/linux-desktop-74/need-help-badly-on-installing-spark-on-centos6-3-a-4175429047/)

mister_sai 09-25-2012 10:55 PM

Need help (badly) on installing Spark on CentOS6.3
 
Hi

Need help on installing Spark on my CentOS6.3 desktop. Already tried searching for steps but still no go.

I tried the steps here http://community.igniterealtime.org/.../196969#196969 but nothing happens.

Am I missing some steps here... Please help... Complete noob here...

sag47 09-25-2012 11:14 PM

Spark comes prepackaged with Java.

There is an RPM package available for download. Why are you not using that?

What steps have you actually taken specifically? Giving a link doesn't really tell what exactly you've tried. What error messages do you get when you run ./Spark?

mister_sai 09-25-2012 11:17 PM

Here's what i get when i "java -varsion"

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (rhel-1.49.1.11.4.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

sag47 09-25-2012 11:20 PM

Please re-read my second post. I have edited it since you last posted likely.

mister_sai 09-26-2012 12:17 AM

i already tried using the RPM version and i got this error :

Spark-2.6.3.12555-1.x86_64 requires libodbc.so
Spark-2.6.3.12555-1.x86_64 requires libodbcinst.so

i already tried this command : yum install libstdc++.so.5

and when I do ./Spark nothing happens, no error whatsoever. it just immediately goes to prompt again.

knudfl 09-26-2012 04:29 AM

Quote:

I already tried this command : yum install libstdc++.so.5
Not a valid command. No package is named libstdc++.so.5 . That's a file name.
Please use : yum provides */libstdc++.so.5
The reply is the package name : compat-libstdc++-33
# yum install compat-libstdc++-33


But why not install Spark with yum ?
# yum localinstall --nogpgcheck <path-to-spark>/spark-2.6.3.rpm
.... or whatever the Spark package name is.
I.e. yum will also install all the dependencies.

.

mister_sai 09-26-2012 04:48 AM

Quote:

Originally Posted by knudfl (Post 4789573)
Not a valid command. No package is named libstdc++.so.5 . That's a file name.
Please use : yum provides */libstdc++.so.5
The reply is the package name : compat-libstdc++-33
# yum install compat-libstdc++-33


But why not install Spark with yum ?
# yum localinstall --nogpgcheck <path-to-spark>/spark-2.6.3.rpm
.... or whatever the Spark package name is.
I.e. yum will also install all the dependencies.

.

i just tried the "yum localinstall" and got this error :

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 to work around the problem
You could try running: rpm -Va --nofiles --nodigest

i also tried using "--skip-broken" and it did complete the installation but nothing happened when I tried "./Spark", again no error just went to prompt again...

knudfl 09-26-2012 04:54 AM

The package is for a 64bits OS. ( x86_64 ).

May be your CentOS 6 is 32bits ? ( i686 ).

This command will tell : uname -m

mister_sai 09-26-2012 04:56 AM

Quote:

Originally Posted by knudfl (Post 4789591)
The package is for a 64bits OS. ( x86_64 ).

May be your CentOS 6 is 32bits ? ( i686 ).

This command will tell : uname -m

here's what i have :

[root@pc24 Spark]# uname -m
x86_64
[root@pc24 Spark]#

Thanks for helping me out!!!

knudfl 09-26-2012 05:41 AM

OK, there is an error in the Spark-2.6.3.12555-1.x86_64 install files.

This will do :
# yum install unixODBC.i686 alsa-lib.i686 libX11.i686 libXau.i686 \
libXext.i686 libXi.i686 libXp.i686 libXtst.i686 libxcb.i686

# rpm -Uvh --nodeps spark-2.6.3.rpm

$ spark : The "Spark GUI" will open.

.

mister_sai 09-26-2012 08:19 PM

Quote:

Originally Posted by knudfl (Post 4789620)
OK, there is an error in the Spark-2.6.3.12555-1.x86_64 install files.

This will do :
# yum install unixODBC.i686 alsa-lib.i686 libX11.i686 libXau.i686 \
libXext.i686 libXi.i686 libXp.i686 libXtst.i686 libxcb.i686

# rpm -Uvh --nodeps spark-2.6.3.rpm

$ spark : The "Spark GUI" will open.

.

it's working now!!! THANKS A BUNCH!!!!!!

one last thing... when I close the terminal, Spark also closes... is it suppose to do that?

mister_sai 09-26-2012 08:51 PM

one last thing... when I close the terminal, Spark also closes... is it suppose to do that?

sag47 09-26-2012 10:55 PM

That sometimes happens if an application doesn't properly handle that (in fact most applications are like that). You could create a .desktop shortcut add spark to $PATH and launch it from the launcher (Alt+F2) if you didn't want to launch it from a terminal. Your file manager might even be set up to launch it when you open the Spark script.

mister_sai 09-26-2012 11:02 PM

Quote:

Originally Posted by sag47 (Post 4790329)
That sometimes happens if an application doesn't properly handle that (in fact most applications are like that). You could create a .desktop shortcut add spark to $PATH and launch it from the launcher (Alt+F2) if you didn't want to launch it from a terminal. Your file manager might even be set up to launch it when you open the Spark script.

WoW thanks! I forgot all about the "create Launcher" option... Thanks again!

Aquarius_Girl 09-27-2012 12:11 AM

Or if you are using KDE, you can add Spark to your "start menu" by right
clicking the start menu and clicking "add items".


All times are GMT -5. The time now is 09:56 AM.