# colinmarc/hdfs

A native go client for HDFS

Repository: https://github.com/colinmarc/hdfs
Canonical: https://ross.abutalabs.com/products/hdfs
Language: Go
License: MIT
License Family: permissive
Topics: hdfs, go, commandline
Last push: 2025-01-22T22:13:07+00:00

## Health v2 (maintenance only)
Score: 24/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 2, release rhythm 8, longevity 100
- inputs: {"age_days": 4347, "days_push": 588, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1403, forks 361 (observed 2026-08-28T04:04:37.898323+00:00)

## What it is
A native Go client for HDFS that connects directly to the namenode via its protocol buffers API, mimicking the stdlib os package interfaces. It also ships a fast commandline client offering POSIX-like verbs (ls, rm, get, put) as a JVM-free alternative to `hadoop fs`.

## Use cases
- read and write files on HDFS from a Go program
- list, copy, and delete files on a Hadoop cluster from the shell
- replace slow `hadoop fs` commands with a fast native binary
- script HDFS operations without a JVM installed
- programmatically inspect HDFS file metadata like os.FileInfo

## When to choose
- you need HDFS access from Go without shelling out to hadoop or the JVM
- you want fast, scriptable HDFS shell commands with bash completion
- you prefer idiomatic Go APIs mirroring the os package

## When to avoid
- your cluster requires Kerberos or advanced Hadoop features not supported by the client
- you need a JVM-based Hadoop ecosystem toolchain (Hive, Spark integration)
- the project lacks an active maintainer and you need guaranteed long-term support

## Facets
- artifact type: library
- maturity: maintenance
- function: database-driver, cli, file-system
- domain: big-data, developer-tools, microservices
- platform: go, cross-platform, cli
- tags: hdfs, hadoop, namenode, protocol-buffers, big-data-storage, unix-tools, command-line, linux, macos

## Member repositories
- colinmarc/hdfs (main) score 24

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.898323+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:54.485928+00:00, confidence not recorded.
  - readme: https://github.com/colinmarc/hdfs (fetched 2026-08-28T04:04:37.898323+00:00, sha 9c349be72fcc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
