hmsutil

package
v0.0.0-...-3b9bd96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostLocation

func GetHostLocation(uri string) (host string, path string, err error)

GetHostLocation splits HDFS URI into host:port part and location part.

Example
uri := fmt.Sprintf("%s://%s%s", scheme, hostPort, location)
host, loc, _ := GetHostLocation(uri)
fmt.Println(host)
fmt.Println(loc)
Output:

host.domain.com:1234
/a/b/c

func ListFiles

func ListFiles(location string) ([]string, error)

List files in the given location

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL