Skip to content

Commit

Permalink
Fix main file build error, update readme file (streamnative#50)
Browse files Browse the repository at this point in the history
Fixed streamnative#49 
* Fix main file build error, update readme file
  • Loading branch information
tuteng committed Jan 13, 2021
1 parent c5d5d63 commit ce74561
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ Now you can see the information collected from filebeat.

### FAQ

#### case-insensitive import collision: "github.com/datadog/zstd" and "github.com/DataDog/zstd"

```
/root/go/pkg/mod/github.com/apache/pulsar-client-go@v0.3.0/pulsar/internal/compression/zstd_cgo.go:27:2: case-insensitive import collision: "github.com/datadog/zstd" and "github.com/DataDog/zstd"
```

Replace zstd_cgo.go file
```
cp zstd_cgo.go /root/go/pkg/mod/github.com/apache/pulsar-client-go@v0.3.0/pulsar/internal/compression/zstd_cgo.go
```

#### Install Pulsar Go Client
Reference https://pulsar.apache.org/docs/en/client-libraries-go/ .

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ package main
import (
"os"
_ "github.com/streamnative/pulsar-beat-output/pulsar"
"github.com/elastic/beats/x-pack/filebeat/cmd"
"github.com/elastic/beats/v7/x-pack/filebeat/cmd"
)

func main() {
if err := cmd.RootCmd.Execute(); err != nil {
if err := cmd.Filebeat().Execute(); err != nil {
os.Exit(1)
}
}

0 comments on commit ce74561

Please sign in to comment.