未验证 提交 8f6f113f 编写于 作者: J Jiawei Wang 提交者: GitHub

Update util.go

上级 ac1ba932
...@@ -83,9 +83,6 @@ func JsonReq(method, requrl string, timeout int, kv *map[string]string, ...@@ -83,9 +83,6 @@ func JsonReq(method, requrl string, timeout int, kv *map[string]string,
} }
func GetHdfsMeta(src string) (master, ugi, path string, err error) { func GetHdfsMeta(src string) (master, ugi, path string, err error) {
//src = "hdfs://root:rootpasst@st1-inf-platform0.st01.baidu.com:54310/user/mis_user/news_dnn_ctr_cube_1/1501836820/news_dnn_ctr_cube_1_part54.tar"
//src = "hdfs://st1-inf-platform0.st01.baidu.com:54310/user/mis_user/news_dnn_ctr_cube_1/1501836820/news_dnn_ctr_cube_1_part54.tar"
ugiBegin := strings.Index(src, "//") ugiBegin := strings.Index(src, "//")
ugiPos := strings.LastIndex(src, "@") ugiPos := strings.LastIndex(src, "@")
if ugiPos != -1 && ugiBegin != -1 { if ugiPos != -1 && ugiBegin != -1 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册