Thanx Harsh, I am not so much expert in Linux but knows little bit.
Do I have to research on my Application *nvidiactl* level or there or just simple commands to make Hadoop uses /dev/nvidiaactl ( driver file libcuddpp.so )


Best Regards, Adarsh



Harsh J wrote:
You're facing a permissions issue with a device, not a Hadoop-related
issue. Find a way to let users access the required devices
(/dev/nvidiactl is what's reported in your ST, for starters).

On Mon, Feb 28, 2011 at 12:05 PM, Adarsh Sharma
<[email protected]> wrote:
Greetings to all,

Today i came across a strange problem about non-root users in Linux ( CentOS
).

I am able to compile & run a Java Program through below commands properly :

[root@cuda1 hadoop-0.20.2]# javac EnumDevices.java
[root@cuda1 hadoop-0.20.2]# java EnumDevices
Total number of devices: 1
Name: Tesla C1060
Version: 1.3
Clock rate: 1296000 MHz
Threads per block: 512

But I need to run it through other user [B]hadoop[/B]  in CentOS

[hadoop@ws37-mah-lin hadoop-0.20.2]$ javac EnumDevices.java
[hadoop@ws37-mah-lin hadoop-0.20.2]$ java EnumDevices
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
Exception in thread "main" CUDA Driver error: 100
      at jcuda.CUDA.setError(CUDA.java:1874)
      at jcuda.CUDA.init(CUDA.java:62)
      at jcuda.CUDA.<init>(CUDA.java:42)
      at EnumDevices.main(EnumDevices.java:20)
[hadoop@ws37-mah-lin hadoop-0.20.2]$

Actually I need to run a map-reduce code but first if it runs through simple
then I will go for it.

Please guide me how to solve this issue as CLASSPATH is same through all
users.



Thanks & best Regards,
Adarsh Sharma






Reply via email to