Skip to content

Example for gcs bucket #57

@sadathknorket

Description

@sadathknorket

I've followed the tutorial https://github.com/bitsondatadev/trino-getting-started/tree/main/hive and it works for me .

I'm wondering what are the tweaks to do to make it working for google cloud storage .

I created secret and access keys in the gcs settings that has Owner and Storage Object Admin access but I get error failed: External location is not a valid file system URI

Here is the full configuration

<?xml version="1.0"?>
<configuration>

    <property>
        <name>fs.defaultFS</name>
        <value>https://storage.googleapis.com</value>
    </property>

    <property>
        <name>fs.s3a.connection.ssl.enabled</name>
        <value>false</value>
    </property>

    <property>
        <name>fs.s3a.endpoint</name>
        <value>https://storage.googleapis.com</value>
    </property>

    <property>
        <name>fs.s3a.access.key</name>
        <value>123</value>
    </property>

    <property>
        <name>fs.s3a.secret.key</name>
        <value>123</value>
    </property>

    <property>
        <name>fs.s3a.path.style.access</name>
        <value>true</value>
    </property>

    <property>
        <name>fs.s3a.impl</name>
        <value>org.apache.hadoop.fs.s3a.S3AFileSystem</value>
    </property>

</configuration>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions