Spaces:
Paused
Paused
Update run.sh
Browse files
run.sh
CHANGED
@@ -31,22 +31,26 @@ export JAVA_HOME=/usr/
|
|
31 |
#Feed data
|
32 |
curl -L -o meta_sports_20k_sample.json.zst https://data.vespa.oath.cloud/sample-apps-data/meta_sports_20k_sample.json.zst
|
33 |
zstd -d meta_sports_20k_sample.json.zst
|
34 |
-
cat meta_sports_20k_sample.json | ./convert_meta.py > feed_items.json
|
|
|
35 |
|
36 |
curl -L -o reviews_sports_24k_sample.json.zst https://data.vespa.oath.cloud/sample-apps-data/reviews_sports_24k_sample.json.zst
|
37 |
zstd -d reviews_sports_24k_sample.json.zst
|
38 |
-
cat reviews_sports_24k_sample.json | ./convert_reviews.py > feed_reviews.json
|
|
|
|
|
|
|
39 |
|
40 |
FEED_CLI_REPO="https://repo1.maven.org/maven2/com/yahoo/vespa/vespa-feed-client-cli" \
|
41 |
&& FEED_CLI_VER=$(curl -Ss "${FEED_CLI_REPO}/maven-metadata.xml" | sed -n 's/.*<release>\(.*\)<.*>/\1/p') \
|
42 |
&& curl -SsLo vespa-feed-client-cli.zip ${FEED_CLI_REPO}/${FEED_CLI_VER}/vespa-feed-client-cli-${FEED_CLI_VER}-zip.zip \
|
43 |
&& unzip -o vespa-feed-client-cli.zip
|
44 |
|
45 |
-
./vespa-feed-client-cli/vespa-feed-client \
|
46 |
-
--verbose --
|
47 |
|
48 |
-
|
49 |
-
--verbose --
|
50 |
|
51 |
FORMAT="${VESPA_LOG_FORMAT:-vespa}"
|
52 |
/opt/vespa/bin/vespa-logfmt --follow --format "$FORMAT" ${VESPA_LOGFMT_ARGUMENTS} &
|
|
|
31 |
#Feed data
|
32 |
curl -L -o meta_sports_20k_sample.json.zst https://data.vespa.oath.cloud/sample-apps-data/meta_sports_20k_sample.json.zst
|
33 |
zstd -d meta_sports_20k_sample.json.zst
|
34 |
+
cat meta_sports_20k_sample.json | ./convert_meta.py |zstd > feed_items.json.zstd
|
35 |
+
rm meta_sports_20k_sample.json meta_sports_20k_sample.json.zst
|
36 |
|
37 |
curl -L -o reviews_sports_24k_sample.json.zst https://data.vespa.oath.cloud/sample-apps-data/reviews_sports_24k_sample.json.zst
|
38 |
zstd -d reviews_sports_24k_sample.json.zst
|
39 |
+
cat reviews_sports_24k_sample.json | ./convert_reviews.py |zstd > feed_reviews.json.zstd
|
40 |
+
rm reviews_sports_24k_sample.json reviews_sports_24k_sample.json.zst
|
41 |
+
|
42 |
+
df -h /opt/vespa/var
|
43 |
|
44 |
FEED_CLI_REPO="https://repo1.maven.org/maven2/com/yahoo/vespa/vespa-feed-client-cli" \
|
45 |
&& FEED_CLI_VER=$(curl -Ss "${FEED_CLI_REPO}/maven-metadata.xml" | sed -n 's/.*<release>\(.*\)<.*>/\1/p') \
|
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 |
+
zstdcat feed_items.json.zstd | ./vespa-feed-client-cli/vespa-feed-client \
|
50 |
+
--verbose --stdin --show-errors --endpoint http://localhost:8080
|
51 |
|
52 |
+
zstdcat feed_reviews.json.zstd |./vespa-feed-client-cli/vespa-feed-client \
|
53 |
+
--verbose --stdin --show-errors --endpoint http://localhost:8080
|
54 |
|
55 |
FORMAT="${VESPA_LOG_FORMAT:-vespa}"
|
56 |
/opt/vespa/bin/vespa-logfmt --follow --format "$FORMAT" ${VESPA_LOGFMT_ARGUMENTS} &
|