File tree Expand file tree Collapse file tree 7 files changed +586
-467
lines changed
main/java/org/apache/hadoop/fs/glusterfs
test/java/org/gluster/test Expand file tree Collapse file tree 7 files changed +586
-467
lines changed Original file line number Diff line number Diff line change @@ -166,3 +166,17 @@ org.gluster.test.AppTest.java <--- Your test cases go here (if
166
166
167
167
./COPYING <--- License
168
168
./README <--- This file
169
+
170
+ BUILDING
171
+ --------
172
+
173
+ Building requires a working gluster mount for unit tests.
174
+ The unit tests read test resources from glusterconfig.properties - a file which should be present
175
+
176
+ 1) edit your .bashrc, or else at your terminal run :
177
+
178
+ export GLUSTER_VOLUME=MyVolume <-- replace with your preferred volume name (default is HadoopVol)
179
+ export GLUSTER_HOST=192.0.1.2 <-- replace with your host (default will be determined at runtime in the JVM)
180
+
181
+ 2) run:
182
+ mvn package
Original file line number Diff line number Diff line change 12
12
13
13
<property >
14
14
<name >fs.default.name</name >
15
- <value >glusterfs://192.168.1.36 :9000</value >
15
+ <value >glusterfs://RHS-1 :9000</value >
16
16
</property >
17
17
18
18
<property >
19
19
<name >fs.glusterfs.volname</name >
20
- <value >volume-dist-rep </value >
20
+ <value >HadoopVol </value >
21
21
</property >
22
22
23
23
<property >
27
27
28
28
<property >
29
29
<name >fs.glusterfs.server</name >
30
- <value >192.168.1.36 </value >
30
+ <value >RHS-1 </value >
31
31
</property >
32
32
33
33
<property >
Original file line number Diff line number Diff line change 20
20
</dependency >
21
21
</dependencies >
22
22
<build >
23
-
24
- <!-- testResources not necessary for now, since
25
- we can easily acess conf/core-site.xml by using its absolute
26
- root path. "/conf/core-site.xml"
27
- <testResources>
28
- <testResource>
29
- <directory>${project.basedir}/conf/</directory>
30
- </testResource>
31
- </testResources>
32
- -->
33
-
34
23
<plugins >
35
24
<plugin >
36
25
<groupId >org.apache.maven.plugins</groupId >
37
26
<artifactId >maven-surefire-plugin</artifactId >
27
+ <configuration >
28
+ <!--
29
+ run "export GLUSTER_HOST=192.X.X.1
30
+ export GLUSTER_VOLUME=volname"
31
+ -->
32
+ <systemProperties >
33
+ <property >
34
+ <name >GLUSTER_HOST</name >
35
+ <value >${GLUSTER_HOST} </value >
36
+ </property >
37
+ <property >
38
+ <name >GLUSTER_VOLUME</name >
39
+ <value >${GLUSTER_VOLUME} </value >
40
+ </property >
41
+ </systemProperties >
42
+ </configuration >
38
43
</plugin >
39
44
40
45
<plugin >
You can’t perform that action at this time.
0 commit comments