Skip to content

Commit

Permalink
[Demo] Make start_demo script easier to call
Browse files Browse the repository at this point in the history
  • Loading branch information
daragu authored and the-other-tim-brown committed May 27, 2024
1 parent a9e6375 commit b58175b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion demo/start_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
# limitations under the License.
#
## Create the require jars for the demo and copy them into a directory we'll mount in our notebook container
cd .. && mvn install -am -pl core -DskipTests -T 2

CURRENT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
XTABLE_HOME="$( cd "$(dirname "$CURRENT_DIR")" ; pwd -P )"
cd $XTABLE_HOME

mvn install -am -pl xtable-core -DskipTests -T 2
mkdir -p demo/jars
cp xtable-hudi-support/xtable-hudi-support-utils/target/xtable-hudi-support-utils-0.1.0-SNAPSHOT.jar demo/jars
cp xtable-api/target/xtable-api-0.1.0-SNAPSHOT.jar demo/jars
Expand Down
6 changes: 3 additions & 3 deletions website/docs/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ from pyspark.sql.types import *

# initialize the bucket
table_name = "people"
local_base_path = "/tmp/hudi-dataset"
local_base_path = "file:/tmp/hudi-dataset"

records = [
(1, 'John', 25, 'NYC', '2023-09-28 00:00:00'),
Expand Down Expand Up @@ -148,7 +148,7 @@ from pyspark.sql.types import *

# initialize the bucket
table_name = "people"
local_base_path = "/tmp/delta-dataset"
local_base_path = "file:/tmp/delta-dataset"

records = [
(1, 'John', 25, 'NYC', '2023-09-28 00:00:00'),
Expand Down Expand Up @@ -185,7 +185,7 @@ from pyspark.sql.types import *

# initialize the bucket
table_name = "people"
local_base_path = "/tmp/iceberg-dataset"
local_base_path = "file:/tmp/iceberg-dataset"

records = [
(1, 'John', 25, 'NYC', '2023-09-28 00:00:00'),
Expand Down

0 comments on commit b58175b

Please sign in to comment.