You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2020/03/05 23:19:44 UTC
[incubator-pinot] branch pinot-quickstart-update created (now
4a858e5)
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a change to branch pinot-quickstart-update
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.
at 4a858e5 Always copy test data out from jar file
This branch includes the following new commits:
new 4a858e5 Always copy test data out from jar file
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[incubator-pinot] 01/01: Always copy test data out from jar file
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch pinot-quickstart-update
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
commit 4a858e50abbcafc6d709163745f9a49f7cf7bf84
Author: Xiang Fu <fx...@gmail.com>
AuthorDate: Thu Mar 5 15:19:05 2020 -0800
Always copy test data out from jar file
---
.../java/org/apache/pinot/tools/admin/command/QuickstartRunner.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/QuickstartRunner.java b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/QuickstartRunner.java
index bdbbaa6..f29d68e 100644
--- a/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/QuickstartRunner.java
+++ b/pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/QuickstartRunner.java
@@ -178,7 +178,10 @@ public class QuickstartRunner {
String inputDirURI = spec.getInputDirURI();
if (!new File(inputDirURI).exists()) {
URL resolvedInputDirURI = QuickstartRunner.class.getClassLoader().getResource(inputDirURI);
- spec.setInputDirURI(resolvedInputDirURI.toURI().toString());
+ File inputDataDir = new File(_tempDir, "inputData");
+ inputDataDir.mkdirs();
+ FileUtils.copyURLToFile(resolvedInputDirURI, new File(inputDataDir, resolvedInputDirURI.getFile()));
+ spec.setInputDirURI(inputDataDir.toURI().toString());
}
IngestionJobLauncher.runIngestionJob(spec);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org