File: hdfs.go

package info (click to toggle)
golang-github-colinmarc-hdfs 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,760 kB
  • sloc: sh: 130; xml: 40; makefile: 31
file content (17 lines) | stat: -rw-r--r-- 407 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
Package hdfs provides a native, idiomatic interface to HDFS. Where possible,
it mimics the functionality and signatures of the standard `os` package.

Example:

	client, _ := hdfs.New("namenode:8020")

	file, _ := client.Open("/mobydick.txt")

	buf := make([]byte, 59)
	file.ReadAt(buf, 48847)

	fmt.Println(string(buf))
	// => Abominable are the tumblers into which he pours his poison.
*/
package hdfs