-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test docker sqoop #10
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c208f62
add basic file
41dee7e
mocha
116ef96
Merge branch 'Fix/add-tdd-test' into Add/basic-and-version-api
2cbc8b3
add first api : version api
0812d4c
Merge branch 'master' into Add/basic-and-version-api
da1b846
use url format url and refactor
c8c9898
test docker sqoop
752f6aa
Merge branch 'Add/basic-and-version-api' into Add/test-sqoop-in-docker
2c1fd01
change host
abf51c6
change host to sqoop
3c5d900
change host to sqoop 2
91cfd93
add -d when run docker
8d7ccf8
use localhost as host
13db247
cache docker image
edf8234
cache docker image 2
4bda01e
remove cache ...
f3baf52
fix
d889079
yarn remove url
d74ef99
Merge branch 'Add/basic-and-version-api' into Add/test-sqoop-in-docker
83fda26
consistent import style
ce62211
use queryString
37f11f3
remove stage-0
95f9959
Merge branch 'Add/basic-and-version-api' into Add/test-sqoop-in-docker
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
{ | ||
"presets": ["latest"] | ||
"presets": [ | ||
"latest" | ||
], | ||
"plugins": [ | ||
[ | ||
"transform-runtime", | ||
{ | ||
"helpers": false, | ||
"polyfill": false, | ||
"regenerator": true, | ||
"moduleName": "babel-runtime" | ||
} | ||
] | ||
] | ||
} |
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,31 @@ | ||
/** | ||
* Created by Chyroc on 17/1/10. | ||
*/ | ||
|
||
const fetch = require('isomorphic-fetch') | ||
|
||
function sendRequest (method, url, body = null) { | ||
return fetch(url, {method: method, body: body}) | ||
.then(function (res) { | ||
return res.json() | ||
}) | ||
.catch(function (err) { | ||
console.log(err) | ||
}) | ||
} | ||
|
||
export function sendGetRequest (url, body = null) { | ||
return sendRequest('GET', url, body) | ||
} | ||
|
||
export function senPostRequest (url, body) { | ||
return sendRequest('POST', url, body) | ||
} | ||
|
||
export function senPutRequest (url, body) { | ||
return sendRequest('PUT', url, body) | ||
} | ||
|
||
export function senDeleteRequest (url, body = null) { | ||
return sendRequest('DELETE', url, body) | ||
} |
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,13 @@ | ||
/** | ||
* Created by Chyroc on 17/1/10. | ||
*/ | ||
|
||
import { Hasoop } from '../src/index' | ||
|
||
const config = { | ||
'userName': 'Developer', | ||
'host': 'localhost', | ||
'port': 12000, | ||
'webapp': 'sqoop' | ||
} | ||
export const sqoopClient = new Hasoop(config) |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得暂时还用不到 cache 吧…… load 这个 image 会很慢么?