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.3.3 | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 |
| el8.aarch64 | N/A | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 |
| el9.x86_64 | MISS | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 |
| el9.aarch64 | MISS | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 |
| el10.x86_64 | MISS | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 |
| el10.aarch64 | MISS | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 | PGDG 2.3.3 |
| d12.x86_64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| d12.aarch64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| d13.x86_64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| d13.aarch64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| u22.x86_64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| u22.aarch64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| u24.x86_64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| u24.aarch64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| u26.x86_64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
| u26.aarch64 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 | PIGSTY 2.3.3 |
Source
github.com/EnterpriseDB/hdfs_fdw
hdfs_fdw-2.3.3.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Create Server
Server Options: host (default localhost), port (default 10000), client_type (hiveserver2 or spark, default hiveserver2), auth_type (NOSASL or LDAP), connect_timeout (default 300), fetch_size (default 10000), log_remote_sql (default false), use_remote_estimate (default false), enable_join_pushdown (default true), enable_aggregate_pushdown (default true), enable_order_by_pushdown (default true).
Create User Mapping
For NOSASL authentication, omit the OPTIONS clause entirely.
Create Foreign Table
Table Options: dbname (default default), table_name (defaults to foreign table name), enable_join_pushdown, enable_aggregate_pushdown, enable_order_by_pushdown.
Query
Spark Example
Pushdown Features
hdfs_fdw pushes down WHERE clauses, JOINs, aggregate functions, ORDER BY, and LIMIT/OFFSET to the remote Hive/Spark server. Control pushdown at the session level: