Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: mkdir /demo: read tcp 192.168.10.1:57318->192.168.10.102:9870: wsarecv: An established connection was aborted by the software in your host machine. #322

Open
withoutabc opened this issue Jun 7, 2023 · 0 comments

Comments

@withoutabc
Copy link

package main

import (
"fmt"
"github.com/colinmarc/hdfs/v2"
"log"
)

var (
HDFSADDR = "hadoop102:9870"
User = "root"
)

func main() {
// 创建一个HDFS客户端配置
options := hdfs.ClientOptions{
Addresses: []string{HDFSADDR},
User: User,
}
client, err := hdfs.NewClient(options)
if err != nil {
panic(err)
}
log.Println(client)
// 创建一个目录,如果目录已存在则无操作
err = client.Mkdir("/demo", 0777)
if err != nil {
panic(err)
}
fmt.Println("目录创建成功")
}
When I want to mkdir, it shows "panic: mkdir /demo: read tcp 192.168.10.1:57318->192.168.10.102:9870: wsarecv: An established connection was aborted by the software in your host machine."

How can I deal with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant