Skip to content

Commit 7fd94b1

Browse files
committed
gluster filesystem relax runtime exception on mount, so that we can mount externally
2 parents d323b40 + f42824a commit 7fd94b1

File tree

7 files changed

+586
-467
lines changed

7 files changed

+586
-467
lines changed

README

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,17 @@ org.gluster.test.AppTest.java <--- Your test cases go here (if
166166

167167
./COPYING <--- License
168168
./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

conf/core-site.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
<property>
1414
<name>fs.default.name</name>
15-
<value>glusterfs://192.168.1.36:9000</value>
15+
<value>glusterfs://RHS-1:9000</value>
1616
</property>
1717

1818
<property>
1919
<name>fs.glusterfs.volname</name>
20-
<value>volume-dist-rep</value>
20+
<value>HadoopVol</value>
2121
</property>
2222

2323
<property>
@@ -27,7 +27,7 @@
2727

2828
<property>
2929
<name>fs.glusterfs.server</name>
30-
<value>192.168.1.36</value>
30+
<value>RHS-1</value>
3131
</property>
3232

3333
<property>

pom.xml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,26 @@
2020
</dependency>
2121
</dependencies>
2222
<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-
3423
<plugins>
3524
<plugin>
3625
<groupId>org.apache.maven.plugins</groupId>
3726
<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>
3843
</plugin>
3944

4045
<plugin>

0 commit comments

Comments
 (0)