Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Trino Input #76

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 16 additions & 16 deletions amphi-etl/packages/theme-light/style/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
--jp-success-color3: #a7f0ba;
--jp-info-color0: #002d9c;

--jp-info-color1: #5A8F7B;
--jp-info-color1: #5a8f7b;
--jp-info-color2: #78a9ff;
--jp-info-color3: #d0e2ff;
--jp-statusbar-height: 24px;

--amphi-interactive-01: #5A8F7B;
--amphi-interactive-01: #5a8f7b;
--amphi-interactive-02: #393939;
--amphi-interactive-03: #5A8F7B;
--amphi-interactive-04: #5A8F7B;
--amphi-interactive-03: #5a8f7b;
--amphi-interactive-04: #5a8f7b;
--amphi-ui-background: #ffffff;
/* --amphi-ui-01: #f4f4f4; */
--amphi-ui-01: #ffffff;
Expand All @@ -99,7 +99,7 @@
--amphi-icon-01: #161616;
--amphi-icon-02: #525252;
--amphi-icon-03: #ffffff;
--amphi-link-01: #5A8F7B;
--amphi-link-01: #5a8f7b;
--amphi-link-02: #0043ce;
--amphi-inverse-link: #78a9ff;
--amphi-field-01: #f4f4f4;
Expand All @@ -117,7 +117,7 @@
--amphi-overlay-01: rgba(22, 22, 22, .5);
--amphi-danger-01: #da1e28;
--amphi-danger-02: #da1e28;
--amphi-focus: #5A8F7B;
--amphi-focus: #5a8f7b;
--amphi-inverse-focus-ui: #ffffff;
--amphi-hover-primary: #0353e9;
--amphi-active-primary: #002d9c;
Expand All @@ -137,7 +137,7 @@
--amphi-hover-danger: #b81921;
--amphi-active-danger: #750e13;
--amphi-hover-row: #EBEBEA;
--amphi-visited-link: #5A8F7B;
--amphi-visited-link: #5a8f7b;
--amphi-disabled-01: #f4f4f4;
--amphi-disabled-02: #c6c6c6;
--amphi-disabled-03: #8d8d8d;
Expand All @@ -153,21 +153,21 @@
--amphi-layer-accent-active: #a8a8a8;
--amphi-field: #f4f4f4;
--amphi-background-inverse: #393939;
--amphi-background-brand: #5A8F7B;
--amphi-interactive: #5A8F7B;
--amphi-background-brand: #5a8f7b;
--amphi-interactive: #5a8f7b;
--amphi-border-subtle: #e0e0e0;
--amphi-border-strong: #8d8d8d;
--amphi-border-inverse: #161616;
--amphi-border-interactive: #5A8F7B;
--amphi-border-interactive: #5a8f7b;
--amphi-text-primary: #161616;
--amphi-text-secondary: #525252;
--amphi-text-placeholder: #a8a8a8;
--amphi-text-helper: #6f6f6f;
--amphi-text-on-color: #ffffff;
--amphi-text-inverse: #ffffff;
--amphi-link-primary: #5A8F7B;
--amphi-link-primary: #5a8f7b;
--amphi-link-secondary: #0043ce;
--amphi-link-visited: #5A8F7B;
--amphi-link-visited: #5a8f7b;
--amphi-link-inverse: #78a9ff;
--amphi-icon-primary: #161616;
--amphi-icon-secondary: #525252;
Expand All @@ -184,9 +184,9 @@
--amphi-overlay: rgba(22, 22, 22, .5);
--amphi-toggle-off: #8d8d8d;
--amphi-shadow: rgba(0, 0, 0, .3);
--amphi-button-primary: #5A8F7B;
--amphi-button-primary: #5a8f7b;
--amphi-button-secondary: #393939;
--amphi-button-tertiary: #5A8F7B;
--amphi-button-tertiary: #5a8f7b;
--amphi-button-danger-primary: #da1e28;
--amphi-button-danger-secondary: #da1e28;
--amphi-background-active: #c6c6c6;
Expand Down Expand Up @@ -221,9 +221,9 @@
--amphi-layer-selected-disabled: #8d8d8d;
--amphi-skeleton-background: #EBEBEA;
--amphi-skeleton-element: #c6c6c6;
--amphi-brand-01: #5A8F7B;
--amphi-brand-01: #5a8f7b;
--amphi-brand-02: #393939;
--amphi-brand-03: #5A8F7B;
--amphi-brand-03: #5a8f7b;
--amphi-active-01: #c6c6c6;
--amphi-hover-field: #EBEBEA;
--amphi-danger: #da1e28;
Expand Down
2 changes: 1 addition & 1 deletion amphi-etl/packages/ui-component/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
theme: {
extend: {
colors: {
primary: '#5A8F7B', // Replace '#yourColorValue' with your desired color value
primary: '#5a8f7b', // Replace '#yourColorValue' with your desired color value
pastel: '#c4eddd',
},
},
Expand Down
19 changes: 19 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Check for "clean" parameter
if [ "$1" == "clean" ]; then
echo "Cleaning up..."
rm -rf dist/ amphi_venv/ build/ node_modules/ amphi/ amphi.egg-info .jupyterlite.doit.db package-lock.json yarn.lock # Replace with the directory you want to remove

if [ "$2" == "deep" ]; then
echo "Deep Cleaning"

find packages -type f -name 'tsconfig.tsbuildinfo' -exec rm {} + -o -type d \( -name 'lib' -o -name 'node_modules' \) -exec rm -rf {} +

fi
# :point_down:️ clean npm cache
npm cache clean --force
exit 0 # Exit after cleaning
fi

jlpm install
jlpm run build
python3 -m pip install .
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3"
services:
spark-iceberg:
image: anhbtsi/spark-test:3.5.1
container_name: spark-iceberg
volumes:
- ./warehouse:/home/iceberg/warehouse
- ./notebooks:/home/iceberg/notebooks/notebooks
environment:
- AWS_ACCESS_KEY_ID=admin
- AWS_SECRET_ACCESS_KEY=password
- AWS_REGION=us-east-1
- SPARK_CLUSTER=MASTER
ports:
- 8889:8888
- 8082:8080
- 10000:10000
- 10001:10001
- 8081:8081
- 7077:7077
- 18080:18080

32 changes: 32 additions & 0 deletions hd_build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Tạo môi trường ảo
# win
python -m venv amphi_venv

# Kích hoạt môi trường ảo (trên Windows)
amphi_venv\Scripts\activate

cd jupyterlab-amphi
# tạo file requirements.txt
jupyterlab==4.2.2
.

python -m pip install -r requirements.txt

pwd #Sử dụng để lấy đường dẫn đến jupyterlab-amphi

./build.sh clean deep; python -m venv amphi_venv; amphi_venv\Scripts\activate; python -m pip install -r requirements.txt

jupyter-lab --notebook-dir=D:\data-repo\vnpt-etl\jupyterlab-amphi --ContentManager.allow_hidden=True

# Xóa cache
./build.sh clean deep;


./build.sh clean deep
python -m venv amphi_venv
source amphi_venv/bin/activate
python -m pip install -r requirements.txt
jupyter lab --notebook-dir=/Users/thibaut/Documents/myfolder --ContentManager.allow_hidden=True

spark-class org.apache.spark.deploy.master.Master
spark-class org.apache.spark.deploy.worker.Worker spark://10.169.0.43:7077
Loading