Skip to content

Commit b5cc227

Browse files
committed
separate modules
1 parent 4002feb commit b5cc227

2 files changed

Lines changed: 54 additions & 2 deletions

File tree

java/lance-namespace-hive2/pom.xml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,56 @@
9696
</exclusions>
9797
<classifier>core</classifier>
9898
</dependency>
99+
100+
<!-- Use Hadoop version compatible with Hive 2.3.9 - needs 2.8.x+ for getPassword method -->
101+
<dependency>
102+
<groupId>org.apache.hadoop</groupId>
103+
<artifactId>hadoop-common</artifactId>
104+
<version>2.8.5</version>
105+
<scope>test</scope>
106+
<exclusions>
107+
<exclusion>
108+
<groupId>com.google.guava</groupId>
109+
<artifactId>guava</artifactId>
110+
</exclusion>
111+
</exclusions>
112+
</dependency>
113+
<dependency>
114+
<groupId>org.apache.hadoop</groupId>
115+
<artifactId>hadoop-hdfs</artifactId>
116+
<version>2.8.5</version>
117+
<scope>test</scope>
118+
<exclusions>
119+
<exclusion>
120+
<groupId>com.google.guava</groupId>
121+
<artifactId>guava</artifactId>
122+
</exclusion>
123+
</exclusions>
124+
</dependency>
125+
<dependency>
126+
<groupId>org.apache.derby</groupId>
127+
<artifactId>derby</artifactId>
128+
<version>10.14.2.0</version>
129+
<scope>test</scope>
130+
</dependency>
131+
<dependency>
132+
<groupId>org.datanucleus</groupId>
133+
<artifactId>datanucleus-core</artifactId>
134+
<version>4.1.17</version>
135+
<scope>test</scope>
136+
</dependency>
137+
<dependency>
138+
<groupId>org.datanucleus</groupId>
139+
<artifactId>datanucleus-api-jdo</artifactId>
140+
<version>4.2.4</version>
141+
<scope>test</scope>
142+
</dependency>
143+
<dependency>
144+
<groupId>org.datanucleus</groupId>
145+
<artifactId>datanucleus-rdbms</artifactId>
146+
<version>4.1.19</version>
147+
<scope>test</scope>
148+
</dependency>
99149

100150
<dependency>
101151
<groupId>com.lancedb</groupId>

java/lance-namespace-hive2/src/test/java/com/lancedb/lance/namespace/hive2/TestHive2Namespace.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ public static void teardown() throws Exception {
7878
metastore.stop();
7979
}
8080

81-
File file = new File(tmpDirBase);
82-
file.delete();
81+
if (tmpDirBase != null) {
82+
File file = new File(tmpDirBase);
83+
file.delete();
84+
}
8385
}
8486

8587
@AfterEach

0 commit comments

Comments
 (0)