Skip to content

Commit 57425d1

Browse files
authored
Merge branch 'master' into master
2 parents 1ef82cf + a257be1 commit 57425d1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

assembly/src/main/assembly/assembly-linux.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<exclude>org.apache.hadoop:*:jar</exclude>
7979
<exclude>org.apache.hive:*:jar</exclude>
8080
<exclude>org.spark-project.hive:*:jar</exclude>
81-
<!--<exclude>org.apache.lucene:*:jar</exclude>-->
81+
<exclude>org.antlr:*:jar</exclude>
8282
<exclude>org.apache.spark:*:jar</exclude>
8383
</excludes>
8484
<outputDirectory>/${qsql.release}/lib</outputDirectory>

core/src/main/java/com/qihoo/qsql/metadata/MetadataClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ private Long getLastInsertPrimaryKey() {
287287

288288
private Connection createConnection() throws SQLException {
289289
if (! MetaConnectionUtil.isEmbeddedDatabase(properties)) {
290-
MetaConnectionUtil.getExternalConnection(properties);
290+
return MetaConnectionUtil.getExternalConnection(properties);
291291
}
292292

293293
try {
294294
Class.forName("org.sqlite.JDBC");
295295
return DriverManager.getConnection("jdbc:sqlite://"
296-
+ new File(properties.getProperty(MetadataParams.META_INTERN_SCHEMA_DIR, "../sqlite/schema.db"))
296+
+ new File(properties.getProperty(MetadataParams.META_INTERN_SCHEMA_DIR, "../metastore/schema.db"))
297297
.getAbsolutePath());
298298
} catch (ClassNotFoundException | SQLException ex) {
299299
throw new RuntimeException(ex);

doc/BUILD_doc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,4 @@ Initialize the sample data to the MySQL database
239239
```shell
240240
cd $QSQL_HOME/bin/
241241
./metadata --dbType mysql --action init
242-
```
242+
```

0 commit comments

Comments
 (0)