Code Monkey home page Code Monkey logo

test-iceberg's Introduction

basic environment

https://github.com/zsvoboda/ngods-stocks/blob/main/docker-compose.yml

in trino docker

  • catalog information

    • /opt/trino# ls etc/catalog
  • cli to test iceberg warehouse:

    • ./trino-cli-362-executable.jar --server localhost:8060 --catalog warehouse --schema information_schema
  • trino commands

    CREATE TABLE test.test_table (id INTEGER, name VARCHAR);
    use warehouse.test
    show TABLES;
    INSERT INTO test_table VALUES (11, 'Jane');
    

in aio docker

  • spark setting in AIO /opt/spark/conf/spark-defaults.conf

    • spark.sql.extensions = org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions

      • This configuration adds Iceberg extensions to Spark, enabling features like time travel and other Iceberg-specific functionalities.
      spark.sql.catalog.warehouse = org.apache.iceberg.spark.SparkCatalog
      spark.sql.defaultCatalog = warehouse
      
  • install maven

    sudo apt update
    sudo apt install maven
    
  • build & exec

mvn clean compile
mvn exec:java -Dexec.mainClass="com.example.App"
mvn clean package
exec:
spark-submit --class com.example.App /opt/spark/expire/iceberg-expire/target/iceberg-expire-1.0-SNAPSHOT.jar

https://blog.csdn.net/spark_dev/article/details/125332540 目錄裡的第14課

test-iceberg's People

Contributors

josephyys avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.