SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
conditionally skip hdfs related code
chrisluad01c63b841d
diff --git a/Makefile b/Makefileindex f324cfc2d4..36da784348 100644--- a/Makefile+++ b/Makefile@@ -8,4 +8,4 @@ install:cd weed; go installfull_install:- cd weed; go install -tags "elastic gocdk sqlite"+ cd weed; go install -tags "elastic gocdk sqlite hdfs"diff --git a/weed/remote_storage/hdfs/doc.go b/weed/remote_storage/hdfs/doc.gonew file mode 100644index 0000000000..086c9de3f6--- /dev/null+++ b/weed/remote_storage/hdfs/doc.go@@ -0,0 +1,9 @@+/*++Package hdfs is for remote hdfs storage.++The referenced "github.com/colinmarc/hdfs/v2" library is too big when compiled.+So this is only compiled in "make full_install".++*/+package hdfsdiff --git a/weed/remote_storage/hdfs/hdfs_kerberos.go b/weed/remote_storage/hdfs/hdfs_kerberos.goindex 50abc0ad54..ba152020ac 100644--- a/weed/remote_storage/hdfs/hdfs_kerberos.go+++ b/weed/remote_storage/hdfs/hdfs_kerberos.go@@ -1,3 +1,6 @@+//go:build hdfs+// +build hdfs+package hdfsimport (diff --git a/weed/remote_storage/hdfs/hdfs_storage_client.go b/weed/remote_storage/hdfs/hdfs_storage_client.goindex 4d76ac0baf..3b71958fd9 100644--- a/weed/remote_storage/hdfs/hdfs_storage_client.go+++ b/weed/remote_storage/hdfs/hdfs_storage_client.go@@ -1,3 +1,6 @@+//go:build hdfs+// +build hdfs+package hdfsimport (@@ -7,7 +10,7 @@ import ("github.com/chrislusf/seaweedfs/weed/pb/remote_pb""github.com/chrislusf/seaweedfs/weed/remote_storage""github.com/chrislusf/seaweedfs/weed/util"- "github.com/colinmarc/hdfs/v2"+ hdfs "github.com/colinmarc/hdfs/v2""io""os""path"