diff options
| author | chrislu <chris.lu@gmail.com> | 2022-04-21 01:43:01 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-04-21 01:43:01 -0700 |
| commit | ad01c63b841dd342fee950d5ea9afb1ee6511346 (patch) | |
| tree | e58f438b01dbe72288af50e9ebf440d2ab93fa8e | |
| parent | 4aa39ef33f89936709c7a169ec09c7dad71c5e9f (diff) | |
| download | seaweedfs-ad01c63b841dd342fee950d5ea9afb1ee6511346.tar.xz seaweedfs-ad01c63b841dd342fee950d5ea9afb1ee6511346.zip | |
conditionally skip hdfs related code
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | weed/remote_storage/hdfs/doc.go | 9 | ||||
| -rw-r--r-- | weed/remote_storage/hdfs/hdfs_kerberos.go | 3 | ||||
| -rw-r--r-- | weed/remote_storage/hdfs/hdfs_storage_client.go | 5 |
4 files changed, 17 insertions, 2 deletions
@@ -8,4 +8,4 @@ install: cd weed; go install full_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.go new file mode 100644 index 000000000..086c9de3f --- /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 hdfs diff --git a/weed/remote_storage/hdfs/hdfs_kerberos.go b/weed/remote_storage/hdfs/hdfs_kerberos.go index 50abc0ad5..ba152020a 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 hdfs import ( diff --git a/weed/remote_storage/hdfs/hdfs_storage_client.go b/weed/remote_storage/hdfs/hdfs_storage_client.go index 4d76ac0ba..3b71958fd 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 hdfs import ( @@ -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" |
