-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from pachyderm/next
Merge v.05 code from next in to master
- Loading branch information
Showing
15 changed files
with
218 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package mapreduce | ||
|
||
import ( | ||
"fmt" | ||
"io" | ||
"log" | ||
"os" | ||
"sync" | ||
"testing" | ||
|
||
"github.com/mitchellh/goamz/aws" | ||
"github.com/mitchellh/goamz/s3" | ||
) | ||
|
||
func TestS3(t *testing.T) { | ||
auth, err := aws.EnvAuth() | ||
log.Printf("auth: %#v", auth) | ||
if err != nil { | ||
log.Print(err) | ||
return | ||
} | ||
client := s3.New(auth, aws.USWest) | ||
bucket := client.Bucket("pachyderm-data") | ||
var wg sync.WaitGroup | ||
defer wg.Wait() | ||
for i := 0; i < 5000; i++ { | ||
wg.Add(1) | ||
go func(i int) { | ||
defer wg.Done() | ||
inFile, err := bucket.GetReader(fmt.Sprintf("chess/file%09d", i)) | ||
if err != nil { | ||
log.Print(err) | ||
return | ||
} | ||
io.Copy(os.Stdout, inFile) | ||
inFile.Close() | ||
}(i) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
# This script gets injected in to the docker container as /usr/sbin/btrfs | ||
# This script gets injected in to the docker container as /bin/btrfs | ||
|
||
LD_LIBRARY_PATH=/lib64.host /usr/sbin/btrfs.host $@ | ||
chroot /host btrfs $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
# Cleanup the state created by scripts/launch | ||
############################################################################### | ||
set -E # pass trap handlers down to subshells | ||
#set -x # execution tracing debug messages | ||
|
||
PFS_DIR=~/.pfs | ||
|
||
sudo umount "$PFS_DIR"/vol || true | ||
rm "$PFS_DIR"/data.img || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.