Coder Social home page Coder Social logo

Comments (2)

eddingtonm avatar eddingtonm commented on June 10, 2024

Hi again,

What I've tried to configure is a hive connector within a hive.properties file under the example/etc/catalog path with a file based metastore for test purposes as well as the Azure configs for ADLS gen 2 storage:

connector.name=hive-hadoop2 hive.metastore=file hive.metastore.catalog.dir=file:///tmp/hive_catalog hive.azure.abfs-storage-account=<name of storage account> hive.azure.abfs-access-key=<access key>

I am able to create a hive based schema from the presto-cli tool within the coordinator container but when I try to create a table based on an external location as follows:

CREATE TABLE OrderStats ( ID int, orderdate date, quantity bigint .... ) WITH ( external_location = 'abfs://container_name@storage_account.dfs.core.windows.net/some_folder/file_folder', format = 'PARQUET' );

It gives out an error: Query failed: Failed checking path: abfs://container_name@storage_account.dfs.core.windows.net/some_folder/file_folder

I tried using the 341-snapshot release as well as the 340 release both without success.

Could it have to do with Docker itself?

Eddie

from docker-trino-cluster.

eddingtonm avatar eddingtonm commented on June 10, 2024

Hi,

I managed to get it to work by adding a parallel Hive Docker setup.

The version of Hadoop should be >= 3.2.0 for Azure Gen2 storage. I used Hive version 3.1.2 and one would need a bunch of jar files such as azure-storage and azure-datalake.

This could be added to the docker-compose.yml setup to make it one config setup.

Hope this helps.

Eddie

from docker-trino-cluster.

Related Issues (6)

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.