mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-13 19:17:17 +00:00
close input stream and fix import older version jar in the standalone module
This commit is contained in:
parent
9a315a7f57
commit
5bfb5adb71
@ -25,6 +25,8 @@ dependencies {
|
|||||||
compile externalDependency.avro_mapred
|
compile externalDependency.avro_mapred
|
||||||
compile externalDependency.joda
|
compile externalDependency.joda
|
||||||
compile externalDependency.hive
|
compile externalDependency.hive
|
||||||
|
compile externalDependency.http_client
|
||||||
|
compile externalDependency.http_core
|
||||||
|
|
||||||
testCompile externalDependency.testng
|
testCompile externalDependency.testng
|
||||||
}
|
}
|
||||||
|
|||||||
@ -82,6 +82,7 @@ public class HdfsMetadataEtl extends EtlJob {
|
|||||||
|
|
||||||
InputStream localJarStream = classLoader.getResourceAsStream("jar/schemaFetch.jar");
|
InputStream localJarStream = classLoader.getResourceAsStream("jar/schemaFetch.jar");
|
||||||
channelSftp.put(localJarStream, remoteJarFile, ChannelSftp.OVERWRITE);
|
channelSftp.put(localJarStream, remoteJarFile, ChannelSftp.OVERWRITE);
|
||||||
|
localJarStream.close();
|
||||||
|
|
||||||
String localSchemaFile = prop.getProperty(Constant.HDFS_SCHEMA_LOCAL_PATH_KEY);
|
String localSchemaFile = prop.getProperty(Constant.HDFS_SCHEMA_LOCAL_PATH_KEY);
|
||||||
new File(localSchemaFile).getParentFile().mkdirs();
|
new File(localSchemaFile).getParentFile().mkdirs();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user