📌 Recommended Approach: We recommend using Method 1 (Filesystem Mounting) as it provides seamless integration with Visual Layer’s profiler and allows you to work with your data as if it were stored locally.
Prerequisites
- Linux-based system (Ubuntu/Debian recommended)
- Internet connectivity
- Google Cloud account with access to the target bucket
- Appropriate permissions on the GCS bucket
Method 1: Filesystem Mounting with GCS FUSE (Recommended)
This is the recommended approach for Visual Layer integration as it provides direct access to your GCS bucket without needing to copy files locally. GCS FUSE allows you to mount a GCS bucket as a local filesystem, making it appear as a regular folder on your machine.Step 1: Install Google Cloud SDK
Update your system and install required dependencies:Step 2: Authenticate with Google Cloud
Choose one of the following authentication methods:Option A: User Authentication
Authenticate using your Google account:Option B: Service Account Authentication
For automated processes or production environments, use a service account:- Create and download a service account key file from the Google Cloud Console
- Set the environment variable:
- Authenticate using the service account:
- Open a browser window (or provide a link to copy/paste)
- Prompt you to sign in with your Google account
- Generate an authentication code
- Return the code to paste back into the terminal
Step 3: Install GCS FUSE
Add the Google Cloud packages repository:Step 4: Create Mount Point
Create a directory where you want to mount the bucket:Step 5: Authenticate for GCS FUSE
Choose the authentication method that matches what you used in Step 2:For User Authentication:
For Service Account Authentication:
If you’re using a service account, theGOOGLE_APPLICATION_CREDENTIALS
environment variable from Step 2 will be automatically used by GCS FUSE.
Step 6: Mount the Bucket
Mount your GCS bucket to the local filesystem:Step 7: Verify the Mount
Verify that the bucket is successfully mounted:Method 2: Command-Line Access
Use this method when you need to copy specific files locally before running Visual Layer profiler, or for one-time data transfers.Step 1: Install Google Cloud SDK
If you haven’t already installed it for Method 1, update your system and install required dependencies:Step 2: Authenticate with Google Cloud
Choose one of the following authentication methods:Option A: User Authentication
Authenticate using your Google account:Option B: Service Account Authentication
For automated processes or production environments, use a service account:- Create and download a service account key file from the Google Cloud Console
- Set the environment variable:
- Authenticate using the service account:
Step 3: Access Bucket Contents
Once authenticated, you can list and access bucket contents usinggsutil
:
Integration with Visual Layer
Running Visual Layer Profiler
After setting up access to your GCS bucket, you can run Visual Layer’s profiler using either method:Option A: Using Mounted Bucket (Recommended)
With the bucket mounted as a local filesystem, run the profiler directly on the mounted directory:Option B: Using Command-Line Copied Data
First copy the data locally using gsutil, then run the profiler:Configuration Options
When using GCS buckets with Visual Layer on-premise installations, you can:- Use mounted buckets for seamless file system access (recommended)
- Copy data locally using gsutil commands for faster processing
- Configure bucket URLs directly in Visual Layer dataset creation
Need Help?
For additional support:- Contact Visual Layer support: support@visual-layer.com
- Refer to Google Cloud Storage documentation
- Check GCS FUSE documentation for advanced configuration options