hmsutil

package
Version: v0.0.0-...-a6ffbee Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 3

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL