hdfs_fdw
hdfs_fdw · foreign-data wrapper for remote hdfs servers
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 8740 | hdfs_fdw | hdfs_fdw | 2.0.5 | FDW | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | aws_s3 duckdb_fdw kafka_fdw pg_clickhouse pg_parquet file_fdw pg_lake pg_bulkload pg_duckdb pg_ducklake |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 |
| el8.aarch64 | N/A | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 |
| el9.x86_64 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 |
| el9.aarch64 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 |
| el10.x86_64 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 |
| el10.aarch64 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 | PGDG 2.4.0 |
| d12.x86_64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| d12.aarch64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| d13.x86_64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| d13.aarch64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| u22.x86_64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| u22.aarch64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| u24.x86_64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| u24.aarch64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| u26.x86_64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
| u26.aarch64 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 | PIGSTY 2.4.0 |
Source
github.com/EnterpriseDB/hdfs_fdw
hdfs_fdw-2.4.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
hdfs_fdw connects PostgreSQL to HiveServer2 or a Spark SQL service. Distribution 2.4.0 supports PostgreSQL 14–19 and retains SQL/control version 2.0.5. It needs the compatible JVM/JDBC client and a reachable remote service; installing the extension alone does not provide HDFS or Hive.
Connect and Query
Install as a superuser. Shared preload is not required. With a remote table already present, replace the example endpoint and mapping credentials:
The mapping must provide the username required by the JDBC authentication path. Select auth_type deliberately for the remote service; do not depend on dummy credentials. Grant server usage and foreign-table access only to intended roles. Remote credentials remain in user mappings and need restricted access.
Options and Plans
client_type selects hiveserver2 or spark. Server settings include connect_timeout, fetch_size, use_remote_estimate and log_remote_sql. Table options dbname and table_name select the remote object. Version 2.4.0 accepts only alphanumeric characters and underscores in those two names; rename incompatible objects before upgrading.
Join, aggregate, ordering and limit pushdown reduce remote work. Use EXPLAIN and the hdfs_fdw.enable_join_pushdown, hdfs_fdw.enable_aggregate_pushdown, hdfs_fdw.enable_order_by_pushdown and hdfs_fdw.enable_limit_pushdown settings to examine plans. Remote SQL semantics, network latency and authentication still apply.
Upgrade Boundaries
This release fixes HiveQL string-literal injection and JVM-load error handling. Install the updated library/JDBC components and reconnect processes using the old library. An existing SQL version 2.0.5 remains unchanged. log_remote_sql includes literal values in server logs; restrict log access. Credential masking improves this release, but it does not make SQL logging suitable for secrets.