Spaces:
Paused
Paused
Update run.sh
Browse files
run.sh
CHANGED
@@ -22,6 +22,9 @@ export HOME=/tmp/
|
|
22 |
cd $HOME
|
23 |
/opt/vespa/bin/vespa clone use-case-shopping myapp && cd myapp
|
24 |
|
|
|
|
|
|
|
25 |
wget https://dlcdn.apache.org/maven/maven-3/3.9.0/binaries/apache-maven-3.9.0-bin.tar.gz && tar zxvpf apache-maven-3.9.0-bin.tar.gz
|
26 |
export JAVA_HOME=/usr/
|
27 |
|
@@ -46,10 +49,13 @@ FEED_CLI_REPO="https://repo1.maven.org/maven2/com/yahoo/vespa/vespa-feed-client-
|
|
46 |
&& curl -SsLo vespa-feed-client-cli.zip ${FEED_CLI_REPO}/${FEED_CLI_VER}/vespa-feed-client-cli-${FEED_CLI_VER}-zip.zip \
|
47 |
&& unzip -o vespa-feed-client-cli.zip
|
48 |
|
49 |
-
|
|
|
|
|
|
|
50 |
--verbose --stdin --show-errors --endpoint http://localhost:8080
|
51 |
|
52 |
-
zstdcat feed_reviews.json.zstd
|
53 |
--verbose --stdin --show-errors --endpoint http://localhost:8080
|
54 |
|
55 |
FORMAT="${VESPA_LOG_FORMAT:-vespa}"
|
|
|
22 |
cd $HOME
|
23 |
/opt/vespa/bin/vespa clone use-case-shopping myapp && cd myapp
|
24 |
|
25 |
+
cat src/main/application/services.xml|sed 's/<redundancy>2<\/redundancy>/<redundancy>2<\/redundancy><tuning><resource-limits><disk>0.90<\/disk><\/resource-limits><\/tuning>/' > src/main/application/services.xml.new
|
26 |
+
mv src/main/application/services.xml.new src/main/application/services.xml
|
27 |
+
|
28 |
wget https://dlcdn.apache.org/maven/maven-3/3.9.0/binaries/apache-maven-3.9.0-bin.tar.gz && tar zxvpf apache-maven-3.9.0-bin.tar.gz
|
29 |
export JAVA_HOME=/usr/
|
30 |
|
|
|
49 |
&& curl -SsLo vespa-feed-client-cli.zip ${FEED_CLI_REPO}/${FEED_CLI_VER}/vespa-feed-client-cli-${FEED_CLI_VER}-zip.zip \
|
50 |
&& unzip -o vespa-feed-client-cli.zip
|
51 |
|
52 |
+
chmod +x ./vespa-feed-client-cli/vespa-feed-client
|
53 |
+
ls -lart ./vespa-feed-client-cli/vespa-feed-client
|
54 |
+
|
55 |
+
zstdcat feed_items.json.zstd|./vespa-feed-client-cli/vespa-feed-client \
|
56 |
--verbose --stdin --show-errors --endpoint http://localhost:8080
|
57 |
|
58 |
+
zstdcat feed_reviews.json.zstd|./vespa-feed-client-cli/vespa-feed-client \
|
59 |
--verbose --stdin --show-errors --endpoint http://localhost:8080
|
60 |
|
61 |
FORMAT="${VESPA_LOG_FORMAT:-vespa}"
|