conditionally skip hdfs related code

This commit is contained in:
chrislu 2022-04-21 01:43:01 -07:00
parent 4aa39ef33f
commit ad01c63b84
4 changed files with 17 additions and 2 deletions

View File

@ -8,4 +8,4 @@ install:
cd weed; go install cd weed; go install
full_install: full_install:
cd weed; go install -tags "elastic gocdk sqlite" cd weed; go install -tags "elastic gocdk sqlite hdfs"

View File

@ -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

View File

@ -1,3 +1,6 @@
//go:build hdfs
// +build hdfs
package hdfs package hdfs
import ( import (

View File

@ -1,3 +1,6 @@
//go:build hdfs
// +build hdfs
package hdfs package hdfs
import ( import (
@ -7,7 +10,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/pb/remote_pb" "github.com/chrislusf/seaweedfs/weed/pb/remote_pb"
"github.com/chrislusf/seaweedfs/weed/remote_storage" "github.com/chrislusf/seaweedfs/weed/remote_storage"
"github.com/chrislusf/seaweedfs/weed/util" "github.com/chrislusf/seaweedfs/weed/util"
"github.com/colinmarc/hdfs/v2" hdfs "github.com/colinmarc/hdfs/v2"
"io" "io"
"os" "os"
"path" "path"