-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
51 lines (30 loc) · 1.1 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
libpyhdfs installation
step by step
------------
** install Java SDK 6
# apt-get install sun-java6-jdk
** install Hadoop's libhdfs development package
For easy to install packaes, follow instructions at
http://archive.cloudera.com/docs/
and then run
# apt-get install libhdfs0-dev
** install libpyhdfs
- check out the source:
$ svn co http://libpyhdfs.googlecode.com/svn/trunk/ libpyhdfs
- prepare the libhdfs.so
You can copy your libhdfs.so into `lib' directory.
or
Edit setup.py: make `library_dirs' point to the correct place.
7 library_dirs = ['lib'],
- install
# python setup.py install --prefix="/usr/local"
If you see the following error:
/usr/lib/jvm/java-6-sun/include/jni.h:27:20: error: jni_md.h: No such file or directory
Edit /usr/lib/jvm/java-6-sun/include/jni.h
change - 27 #include "jni_md.h"
into + 27 #include "linux/jni_md.h"
ses https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/390290
Debian has the same problem.
** Run test script
$ cd test
$ python pyhdfs_test.py