Registry / networking / colinmarc-hdfs

colinmarc-hdfs

JSON →
library1.1.3gogounverified

A Go client library for interacting with Hadoop Distributed File System (HDFS).

go get github.com/colinmarc/hdfs
INSTALL
IMPORT
SIG · COLINMARC-HDFS
C
colinmarc-hdfs
networkinggov1.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hdfs
github.com/colinmarc/hdfs

List files in the root directory of HDFS.

package main import ( "fmt" "github.com/colinmarc/hdfs" ) func main() { client, err := hdfs.New("namenode:8020") if err != nil { panic(err) } files, _ := client.ReadDir("/") for _, f := range files { fmt.Println(f.Name()) } }
Debug
Known issues
gotchaThe client requires a running HDFS namenode; connection errors will occur if not available.
fix
Ensure the namenode address is correct and the HDFS cluster is accessible.
affects: >=1.0.0
Upgrade
Version history
1.1.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
19
OpenAI (training)
1
Resources
colinmarc-hdfs — go get colinmarc-hdfs · libregistry