1330 |
01 Apr 11 |
nicklas |
== Requirements == |
1330 |
01 Apr 11 |
nicklas |
2 |
|
2289 |
13 Mar 14 |
nicklas |
1. BASE 3.3 or later. |
1330 |
01 Apr 11 |
nicklas |
4 |
|
1330 |
01 Apr 11 |
nicklas |
== Introduction == |
1330 |
01 Apr 11 |
nicklas |
6 |
|
1330 |
01 Apr 11 |
nicklas |
This package is an extension package to BASE that adds support |
1330 |
01 Apr 11 |
nicklas |
for external files located on a Hadoop Distributed File System |
1330 |
01 Apr 11 |
nicklas |
(HDFS). |
1330 |
01 Apr 11 |
nicklas |
10 |
|
1330 |
01 Apr 11 |
nicklas |
* The homepage for this extension: |
1330 |
01 Apr 11 |
nicklas |
http://baseplugins.thep.lu.se/wiki/net.sf.basedb.hdfs |
1330 |
01 Apr 11 |
nicklas |
13 |
|
1330 |
01 Apr 11 |
nicklas |
== Installation == |
1330 |
01 Apr 11 |
nicklas |
15 |
|
1330 |
01 Apr 11 |
nicklas |
1. Download the hdfs-*.tar.gz file. |
1330 |
01 Apr 11 |
nicklas |
2. Unpack the downloaded file to a directory of your choice. |
1358 |
03 May 11 |
nicklas |
3. Copy the 'hdfs.jar' file to your BASE plug-ins directory. Look in your |
1358 |
03 May 11 |
nicklas |
'base.config' file if you don't know where this is. |
1358 |
03 May 11 |
nicklas |
4. Go to 'Administrate->Plug-ins & Extensions->Overview' page. |
1358 |
03 May 11 |
nicklas |
5. Run the installation wizard and select to install 'hdfs.jar'. |
1358 |
03 May 11 |
nicklas |
6. Done. |
1330 |
01 Apr 11 |
nicklas |
23 |
|
1330 |
01 Apr 11 |
nicklas |
24 |
|
1330 |
01 Apr 11 |
nicklas |
== Using == |
1330 |
01 Apr 11 |
nicklas |
26 |
|
1330 |
01 Apr 11 |
nicklas |
Create an external file in BASE using an URL on the form: |
1330 |
01 Apr 11 |
nicklas |
28 |
|
1330 |
01 Apr 11 |
nicklas |
hdfs://namenode.server:port/path/on/hdfs/filesystem |
1330 |
01 Apr 11 |
nicklas |
30 |
|
1330 |
01 Apr 11 |
nicklas |
where 'namenode.server' is the ip-address or name of the |
1330 |
01 Apr 11 |
nicklas |
Namenode for the HDFS cluster. The port is optional. If not |
1330 |
01 Apr 11 |
nicklas |
specified 9000 is used as the default port. |
1330 |
01 Apr 11 |
nicklas |
34 |
|
1330 |
01 Apr 11 |
nicklas |
It is also possible to create a "File server" item in BASE |
1330 |
01 Apr 11 |
nicklas |
to force the use of HDFS. Since HDFS does not yet support |
1330 |
01 Apr 11 |
nicklas |
autentication the rest of the options for the file server |
1330 |
01 Apr 11 |
nicklas |
item are not used. |
1330 |
01 Apr 11 |
nicklas |
39 |
|
1330 |
01 Apr 11 |
nicklas |
40 |
|
1330 |
01 Apr 11 |
nicklas |
== Compiling == |
1330 |
01 Apr 11 |
nicklas |
42 |
|
1330 |
01 Apr 11 |
nicklas |
To compile this package you also need: |
1330 |
01 Apr 11 |
nicklas |
44 |
|
1451 |
03 Nov 11 |
nicklas |
1. Ant 1.8 |
2289 |
13 Mar 14 |
nicklas |
2. Java 1.7 |
1330 |
01 Apr 11 |
nicklas |
47 |
|
1330 |
01 Apr 11 |
nicklas |
Follow these instructions: |
1330 |
01 Apr 11 |
nicklas |
49 |
|
1330 |
01 Apr 11 |
nicklas |
1. Download the source code from the subversion repository. See |
1330 |
01 Apr 11 |
nicklas |
http://baseplugins.thep.lu.se/wiki/net.sf.basedb.hdfs for instructions. |
1330 |
01 Apr 11 |
nicklas |
52 |
|
1330 |
01 Apr 11 |
nicklas |
2. Type `ant download-lib` to automatically download the BASE core JAR files that |
1330 |
01 Apr 11 |
nicklas |
are neeed for compilation. You can also do this manually by copying the |
1330 |
01 Apr 11 |
nicklas |
base-core-3.x.jar file from the BASE installation directory |
1330 |
01 Apr 11 |
nicklas |
(<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory. |
1330 |
01 Apr 11 |
nicklas |
57 |
|
1330 |
01 Apr 11 |
nicklas |
3. Type 'ant' to compile the code and generate the 'hdfs.jar' file |
1330 |
01 Apr 11 |
nicklas |
in the project directory. |
1330 |
01 Apr 11 |
nicklas |
60 |
|
1330 |
01 Apr 11 |
nicklas |
4. Use 'ant package' to create a downloadable tar.gz package. |
1330 |
01 Apr 11 |
nicklas |
62 |
|
1330 |
01 Apr 11 |
nicklas |
Tip: If you need different values for any of the properties defined in |
1330 |
01 Apr 11 |
nicklas |
the 'build.xml' file, create a file named 'build.properties' and set |
1330 |
01 Apr 11 |
nicklas |
the values there. |
1330 |
01 Apr 11 |
nicklas |
66 |
|