-
Notifications
You must be signed in to change notification settings - Fork 42
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 #562 from binpash/future
Many fixes and OSDI artifact
- Loading branch information
Showing
112 changed files
with
5,285 additions
and
375 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"command": "dfs_split_reader.sh", | ||
"cases": | ||
[ | ||
{ | ||
"predicate": "default", | ||
"class": "pure", | ||
"inputs": ["args[0]"], | ||
"outputs": ["stdout"] | ||
} | ||
] | ||
} |
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,23 @@ | ||
{ | ||
"command": "hdfs", | ||
"cases": | ||
[ | ||
{ | ||
"predicate": | ||
{ | ||
"operator": "exists", | ||
"operands": ["-cat"] | ||
}, | ||
"class": "stateless", | ||
"inputs": ["args[1]"], | ||
"outputs": ["stdout"], | ||
"comments": "This represents hdfs dfs -cat <path>. Slightly hacky since we only check for -cat" | ||
}, | ||
{ | ||
"predicate": "default", | ||
"class": "side-effectful", | ||
"inputs": ["stdin"], | ||
"outputs": ["stdout"] | ||
} | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"command": "remote_read.sh", | ||
"cases": | ||
[ | ||
{ | ||
"predicate": "default", | ||
"class": "pure", | ||
"inputs": [], | ||
"outputs": ["stdout"] | ||
} | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"command": "remote_write.sh", | ||
"cases": | ||
[ | ||
{ | ||
"predicate": "default", | ||
"class": "pure", | ||
"inputs": ["stdin"], | ||
"outputs": ["stdout"] | ||
} | ||
] | ||
} |
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,28 @@ | ||
import os | ||
from definitions.ir.dfg_node import * | ||
|
||
class DFSSplitReader(DFGNode): | ||
def __init__(self, inputs, outputs, com_name, com_category, | ||
com_options = [], com_redirs = [], com_assignments=[]): | ||
|
||
super().__init__(inputs, outputs, com_name, com_category, | ||
com_options=com_options, | ||
com_redirs=com_redirs, | ||
com_assignments=com_assignments) | ||
|
||
def set_server_address(self, addr): # ex addr: 127.0.0.1:50051 | ||
self.com_options.append((3, Arg(string_to_argument(f"--addr {addr}")))) | ||
|
||
def make_dfs_split_reader_node(inputs, output, split_num, prefix): | ||
split_reader_bin = os.path.join(config.PASH_TOP, config.config['runtime']['dfs_split_reader_binary']) | ||
com_name = Arg(string_to_argument(split_reader_bin)) | ||
com_category = "pure" | ||
options = [] | ||
options.append((1, Arg(string_to_argument(f"--prefix '{prefix}'")))) | ||
options.append((2, Arg(string_to_argument(f"--split {split_num}")))) | ||
|
||
return DFSSplitReader(inputs, | ||
[output], | ||
com_name, | ||
com_category, | ||
options) |
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,11 @@ | ||
from definitions.ir.dfg_node import * | ||
|
||
class HDFSCat(DFGNode): | ||
def __init__(self, inputs, outputs, com_name, com_category, | ||
com_options = [], com_redirs = [], com_assignments=[]): | ||
assert(str(com_name) == "hdfs") | ||
assert(str(com_options[0][1]) == "dfs" and str(com_options[1][1]) == "-cat") | ||
super().__init__(inputs, outputs, com_name, com_category, | ||
com_options=com_options, | ||
com_redirs=com_redirs, | ||
com_assignments=com_assignments) |
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,30 @@ | ||
from definitions.ir.dfg_node import * | ||
|
||
class RemotePipe(DFGNode): | ||
def __init__(self, inputs, outputs, com_name, com_category, | ||
com_options = [], com_redirs = [], com_assignments=[]): | ||
super().__init__(inputs, outputs, com_name, com_category, | ||
com_options=com_options, | ||
com_redirs=com_redirs, | ||
com_assignments=com_assignments) | ||
|
||
def make_remote_pipe(inputs, outputs, host_ip, port, is_remote_read, id): | ||
com_category = "pure" | ||
options = [] | ||
opt_count = 0 | ||
|
||
if is_remote_read: | ||
remote_pipe_bin = os.path.join(config.PASH_TOP, config.config['runtime']['remote_read_binary']) | ||
else: | ||
remote_pipe_bin = os.path.join(config.PASH_TOP, config.config['runtime']['remote_write_binary']) | ||
|
||
com_name = Arg(string_to_argument(remote_pipe_bin)) | ||
|
||
options.append((opt_count, Arg(string_to_argument(f"--addr {host_ip}:{port}")))) | ||
options.append((opt_count + 1, Arg(string_to_argument(f"--id {id}")))) | ||
|
||
return RemotePipe(inputs, | ||
outputs, | ||
com_name, | ||
com_category, | ||
com_options=options) |
Oops, something went wrong.