26 | */
27 | public enum FilePreviewImageTypes {
28 | PNG,
29 | JPG,
30 | JPEG,
31 | TIFF,
32 | GIF,
33 | EXIF,
34 | BMP,
35 | BPG
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/java/io/hops/hopsworks/api/zeppelin/rest/NotebookResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package io.hops.hopsworks.api.zeppelin.rest;
18 |
19 | import javax.xml.bind.annotation.XmlRootElement;
20 |
21 | /**
22 | * Response wrapper.
23 | *
24 | */
25 | @XmlRootElement
26 | public class NotebookResponse {
27 |
28 | private String msg;
29 |
30 | public NotebookResponse() {
31 | }
32 |
33 | public NotebookResponse(String msg) {
34 | this.msg = msg;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/java/io/hops/hopsworks/api/zeppelin/rest/message/CronRequest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package io.hops.hopsworks.api.zeppelin.rest.message;
18 |
19 | import com.google.gson.Gson;
20 | import org.apache.zeppelin.common.JsonSerializable;
21 |
22 | /**
23 | * CronRequest rest api request message
24 | *
25 | */
26 | public class CronRequest implements JsonSerializable {
27 |
28 | private static final Gson gson = new Gson();
29 |
30 | String cron;
31 |
32 | public CronRequest() {
33 |
34 | }
35 |
36 | public String getCronString() {
37 | return cron;
38 | }
39 |
40 | public String toJson() {
41 | return gson.toJson(this);
42 | }
43 |
44 | public static CronRequest fromJson(String json) {
45 | return gson.fromJson(json, CronRequest.class);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/java/io/hops/hopsworks/api/zeppelin/rest/message/RestartInterpreterRequest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package io.hops.hopsworks.api.zeppelin.rest.message;
18 |
19 | import com.google.gson.Gson;
20 | import org.apache.zeppelin.common.JsonSerializable;
21 |
22 | /**
23 | * RestartInterpreter rest api request message
24 | */
25 | public class RestartInterpreterRequest implements JsonSerializable {
26 |
27 | private static final Gson gson = new Gson();
28 |
29 | String noteId;
30 |
31 | public RestartInterpreterRequest() {
32 |
33 | }
34 |
35 | public String getNoteId() {
36 | return noteId;
37 | }
38 |
39 | public String toJson() {
40 | return gson.toJson(this);
41 | }
42 |
43 | public static RestartInterpreterRequest fromJson(String json) {
44 | return gson.fromJson(json, RestartInterpreterRequest.class);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/java/io/hops/hopsworks/api/zeppelin/rest/message/RunParagraphWithParametersRequest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package io.hops.hopsworks.api.zeppelin.rest.message;
18 |
19 | import com.google.gson.Gson;
20 | import org.apache.zeppelin.common.JsonSerializable;
21 |
22 | import java.util.Map;
23 |
24 | /**
25 | * RunParagraphWithParametersRequest rest api request message
26 | */
27 | public class RunParagraphWithParametersRequest implements JsonSerializable {
28 |
29 | private static final Gson gson = new Gson();
30 |
31 | Map params;
32 |
33 | public RunParagraphWithParametersRequest() {
34 |
35 | }
36 |
37 | public Map getParams() {
38 | return params;
39 | }
40 |
41 | public String toJson() {
42 | return gson.toJson(this);
43 | }
44 |
45 | public static RunParagraphWithParametersRequest fromJson(String json) {
46 | return gson.fromJson(json, RunParagraphWithParametersRequest.class);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/java/io/hops/hopsworks/api/zeppelin/server/JsonExclusionStrategy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package io.hops.hopsworks.api.zeppelin.server;
18 |
19 | import com.google.gson.ExclusionStrategy;
20 | import com.google.gson.FieldAttributes;
21 |
22 | /**
23 | * Created by eranw on 8/30/15.
24 | */
25 | public class JsonExclusionStrategy implements ExclusionStrategy {
26 |
27 | public boolean shouldSkipClass(Class> arg0) {
28 | return false;
29 | }
30 |
31 | public boolean shouldSkipField(FieldAttributes f) {
32 | return false;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/java/io/hops/hopsworks/api/zeppelin/types/InterpreterSettingsList.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package io.hops.hopsworks.api.zeppelin.types;
18 |
19 | import java.util.List;
20 |
21 | import org.apache.zeppelin.interpreter.InterpreterInfo;
22 |
23 | /**
24 | * InterpreterSetting information for binding
25 | */
26 | public class InterpreterSettingsList {
27 |
28 | private String id;
29 | private String name;
30 | private boolean selected;
31 | private List interpreters;
32 |
33 | public InterpreterSettingsList(String id, String name,
34 | List interpreters, boolean selected) {
35 | this.id = id;
36 | this.name = name;
37 | this.interpreters = interpreters;
38 | this.selected = selected;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/java/io/hops/hopsworks/api/zeppelin/util/ExceptionUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package io.hops.hopsworks.api.zeppelin.util;
18 |
19 | import io.hops.hopsworks.api.zeppelin.server.JsonResponse;
20 | import javax.ws.rs.core.Response.Status;
21 |
22 |
23 | /**
24 | * Utility method for exception in rest api.
25 | *
26 | */
27 | public class ExceptionUtils {
28 |
29 | public static javax.ws.rs.core.Response jsonResponse(Status status) {
30 | return new JsonResponse<>(status).build();
31 | }
32 |
33 | public static javax.ws.rs.core.Response jsonResponseContent(Status status,
34 | String message) {
35 | return new JsonResponse<>(status, message).build();
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/resources/META-INF/spring.handlers:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | #
4 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | # software and associated documentation files (the "Software"), to deal in the Software
6 | # without restriction, including without limitation the rights to use, copy, modify, merge,
7 | # publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the following conditions:
9 | #
10 | # The above copyright notice and this permission notice shall be included in all copies or
11 | # substantial portions of the Software.
12 | #
13 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | # BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | #
19 | #
20 |
21 | http\://membrane-soa.org/war/1/=com.predic8.membrane.servlet.config.spring.NamespaceHandler
22 |
--------------------------------------------------------------------------------
/hopsworks-api/src/main/resources/META-INF/spring.schemas:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | #
4 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | # software and associated documentation files (the "Software"), to deal in the Software
6 | # without restriction, including without limitation the rights to use, copy, modify, merge,
7 | # publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | # persons to whom the Software is furnished to do so, subject to the following conditions:
9 | #
10 | # The above copyright notice and this permission notice shall be included in all copies or
11 | # substantial portions of the Software.
12 | #
13 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | # BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | #
19 | #
20 |
21 | http\://membrane-soa.org/schemas/war-1.xsd=com/predic8/membrane/servlet/config/spring/router-conf.xsd
--------------------------------------------------------------------------------
/hopsworks-ca/src/main/java/io/hops/hopsworks/ca/api/annotation/AllowCORS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.ca.api.annotation;
22 |
23 | import java.lang.annotation.ElementType;
24 | import java.lang.annotation.Retention;
25 | import java.lang.annotation.RetentionPolicy;
26 | import java.lang.annotation.Target;
27 | import javax.ws.rs.NameBinding;
28 |
29 | @NameBinding
30 | @Target({ ElementType.TYPE, ElementType.METHOD })
31 | @Retention(RetentionPolicy.RUNTIME)
32 | public @interface AllowCORS {
33 |
34 | }
--------------------------------------------------------------------------------
/hopsworks-ca/src/main/java/io/hops/hopsworks/ca/apiV2/annotation/AllowCORS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.ca.apiV2.annotation;
22 |
23 | import java.lang.annotation.ElementType;
24 | import java.lang.annotation.Retention;
25 | import java.lang.annotation.RetentionPolicy;
26 | import java.lang.annotation.Target;
27 | import javax.ws.rs.NameBinding;
28 |
29 | @NameBinding
30 | @Target({ ElementType.TYPE, ElementType.METHOD })
31 | @Retention(RetentionPolicy.RUNTIME)
32 | public @interface AllowCORS {
33 |
34 | }
--------------------------------------------------------------------------------
/hopsworks-cluster/src/main/webapp/.bowerrc:
--------------------------------------------------------------------------------
1 | {
2 | "directory": "vendor",
3 | "registry": "https://registry.bower.io"
4 | }
5 |
--------------------------------------------------------------------------------
/hopsworks-cluster/src/main/webapp/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cluster-registration",
3 | "description": "hopsworks cluster registration",
4 | "main": "index.js",
5 | "authors": [
6 | "ErmiasG"
7 | ],
8 | "license": "Apache-2.0",
9 | "homepage": "https://github.com/AlexHopsworks/hopsworks",
10 | "ignore": [
11 | "**/.*",
12 | "node_modules",
13 | "bower_components",
14 | "src/main/webapp/vendor",
15 | "test",
16 | "tests"
17 | ],
18 | "dependencies": {
19 | "bootstrap": "^3.3.7",
20 | "angular": "1.6.7",
21 | "angular-route": "^1.6.7",
22 | "angular-loader": "^1.6.7",
23 | "angular-mocks": "^1.6.7",
24 | "angular-bootstrap": "^2.5.0",
25 | "components-font-awesome": "^4.7.0"
26 | },
27 | "resolutions": {
28 | "angular": "1.6.7"
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/hopsworks-cluster/src/main/webapp/css/main.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | body {
22 | background-image: url("../img/network.png");
23 | background-color: #8ec3eb;
24 | overflow-x: hidden;
25 | }
26 |
27 | .center {
28 | margin: auto;
29 | width: 50%;
30 | padding: 10px;
31 | text-align: center;
32 | color: #fff;
33 | }
34 |
35 | .alert {
36 | overflow-x: auto !important;
37 | }
38 |
--------------------------------------------------------------------------------
/hopsworks-cluster/src/main/webapp/img/network.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-cluster/src/main/webapp/img/network.png
--------------------------------------------------------------------------------
/hopsworks-cluster/src/main/webapp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cluster-registration",
3 | "version": "1.0.0",
4 | "description": "hopsworks cluster registration",
5 | "main": "index.js",
6 | "devDependencies": {
7 | "bower": "^1.3.1",
8 | "http-server": "^0.6.1",
9 | "karma": "~0.12",
10 | "karma-chrome-launcher": "^0.1.4",
11 | "karma-firefox-launcher": "^0.1.3",
12 | "karma-jasmine": "^0.1.5",
13 | "karma-junit-reporter": "^0.2.2",
14 | "protractor": "~0.20.1",
15 | "shelljs": "^0.2.6"
16 | },
17 | "scripts": {
18 | "postinstall": "bower install",
19 | "prestart": "npm install",
20 | "clean": "rm -rf node_modules && rm -rf vendor",
21 | "start": "http-server . -a localhost -p 8000",
22 | "pretest": "npm install",
23 | "test": "karma start src/test/javascript/karma.conf.js",
24 | "test-single-run": "karma start src/test/javascript/karma.conf.js --single-run",
25 | "preupdate-webdriver": "npm install",
26 | "update-webdriver": "webdriver-manager update",
27 | "preprotractor": "npm run update-webdriver",
28 | "update-index-async": "node -e \"require('shelljs/global'); sed('-i', /\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/, '//@@NG_LOADER_START@@\\n' + cat('src/main/webapp/vendor/angular-loader/angular-loader.min.js') + '\\n//@@NG_LOADER_END@@', 'src/main/webapp/index.html');\""
29 | },
30 | "repository": {
31 | "type": "git",
32 | "url": "https://github.com/hopshadoop/hopsworks.git"
33 | },
34 | "author": "ErmiasG",
35 | "license": "Apache-2.0",
36 | "bugs": {
37 | "url": "https://github.com/hopshadoop/hopsworks/issues"
38 | },
39 | "homepage": "https://github.com/hopshadoop/hopsworks#readme"
40 | }
41 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/constants/auth/AllowedRoles.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.constants.auth;
22 |
23 | public class AllowedRoles {
24 |
25 | public static final String ALL = "ALL";
26 | public static final String DATA_OWNER = "Data owner";
27 | public static final String DATA_SCIENTIST = "Data scientist";
28 | }
29 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/dataset/DatasetPermissions.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.dataset;
22 |
23 | /**
24 | * User settable permissions for Datasets.
25 | *
26 | */
27 | public enum DatasetPermissions {
28 | GROUP_WRITABLE_SB, //1770
29 | GROUP_WRITABLE, //770
30 | OWNER_ONLY //750
31 | }
32 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/dataset/DatasetType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.dataset;
22 |
23 | public enum DatasetType {
24 | DATASET,
25 | HIVEDB
26 | }
27 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/host/Health.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.host;
22 |
23 | public enum Health {
24 | Good,
25 | Bad
26 | }
27 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/host/Status.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.host;
22 |
23 | public enum Status {
24 |
25 | Started,
26 | Stopped,
27 | Failed,
28 | TimedOut,
29 | None
30 | }
31 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/jobs/description/AppIdDTO.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.jobs.description;
22 |
23 | import javax.xml.bind.annotation.XmlRootElement;
24 |
25 | @XmlRootElement
26 | public class AppIdDTO {
27 |
28 | String id;
29 |
30 | public AppIdDTO() {
31 | }
32 |
33 | public AppIdDTO(String id) {
34 | this.id = id;
35 | }
36 |
37 | public String getId() {
38 | return id;
39 | }
40 |
41 | public void setId(String id) {
42 | this.id = id;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/kafka/SchemaCompatiblityCheck.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.kafka;
22 |
23 | public enum SchemaCompatiblityCheck {
24 | INVALID,
25 | COMPATIBLE,
26 | INCOMPATIBLE
27 | }
28 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/log/meta/MetaType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.log.meta;
22 |
23 | public enum MetaType {
24 | SchemaBased,
25 | SchemaLess
26 | }
27 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/log/operation/OperationOn.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.log.operation;
22 |
23 | public enum OperationOn {
24 | Dataset,
25 | Project,
26 | Schema
27 | }
28 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/log/operation/OperationType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.log.operation;
22 |
23 | public enum OperationType {
24 | Add,
25 | Delete,
26 | Update
27 | }
28 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/project/PaymentType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.project;
22 |
23 | import javax.xml.bind.annotation.XmlRootElement;
24 |
25 | @XmlRootElement
26 | public enum PaymentType {
27 | PREPAID,
28 | NOLIMIT
29 | }
30 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/project/service/ProjectServicesConverter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.project.service;
22 |
23 | import javax.faces.convert.EnumConverter;
24 | import javax.faces.convert.FacesConverter;
25 |
26 | @FacesConverter(value = "projectServiceConverter")
27 | public class ProjectServicesConverter extends EnumConverter {
28 |
29 | public ProjectServicesConverter() {
30 | super(ProjectServiceEnum.class);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/project/team/ProjectRoleTypes.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.project.team;
22 |
23 | public enum ProjectRoleTypes {
24 |
25 | DATA_OWNER("Data owner"),
26 | DATA_SCIENTIST("Data scientist"),
27 | UNDER_REMOVAL("Under removal");
28 |
29 | String role;
30 |
31 | ProjectRoleTypes(String role) {
32 | this.role = role;
33 | }
34 |
35 | public String getRole() {
36 | return this.role;
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/tfserving/TransformGraphDTO.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.tfserving;
22 |
23 | import javax.xml.bind.annotation.XmlRootElement;
24 |
25 | @XmlRootElement
26 | public class TransformGraphDTO {
27 |
28 | private int tfServingId;
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/user/RoleAction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.user;
22 |
23 | import javax.xml.bind.annotation.XmlEnum;
24 | import javax.xml.bind.annotation.XmlEnumValue;
25 | import javax.xml.bind.annotation.XmlType;
26 |
27 | @XmlType(name = "bbc-group-action")
28 | @XmlEnum
29 | public enum RoleAction {
30 | @XmlEnumValue("ADD")
31 | ADD,
32 |
33 | @XmlEnumValue("REMOVE")
34 | REMOVE;
35 | }
36 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/dao/user/security/audit/UserAuditActions.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.dao.user.security.audit;
22 |
23 | public enum UserAuditActions {
24 |
25 | LOGIN("LOGIN"),
26 | LOGOUT("LOGOUT"),
27 | UNAUTHORIZED("UNAUTHORIZED ACCESS"),
28 | SUCCESS("SUCCESS"),
29 | FAILED("FAILED"),
30 | ABORTED("ABORTED"),
31 | ALL("ALL");
32 |
33 | private final String value;
34 |
35 | UserAuditActions(String value) { this.value = value; }
36 |
37 | @Override
38 | public String toString() { return value; }
39 | }
40 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/exception/CryptoPasswordNotFoundException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 | package io.hops.hopsworks.common.exception;
21 |
22 | public class CryptoPasswordNotFoundException extends Exception {
23 | public CryptoPasswordNotFoundException(String message) {
24 | super(message);
25 | }
26 |
27 | public CryptoPasswordNotFoundException(Throwable cause) {
28 | super(cause);
29 | }
30 |
31 | public CryptoPasswordNotFoundException(String message, Throwable cause) {
32 | super(message, cause);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/exception/EncryptionMasterPasswordException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 | package io.hops.hopsworks.common.exception;
21 |
22 | public class EncryptionMasterPasswordException extends Exception {
23 | public EncryptionMasterPasswordException(String message) {
24 | super(message);
25 | }
26 |
27 | public EncryptionMasterPasswordException(Throwable cause) {
28 | super(cause);
29 | }
30 |
31 | public EncryptionMasterPasswordException(String message, Throwable cause) {
32 | super(message, cause);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/exception/JobCreationException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 | package io.hops.hopsworks.common.exception;
21 |
22 | public class JobCreationException extends Exception {
23 |
24 | public JobCreationException(String message) {
25 | super(message);
26 | }
27 |
28 | public JobCreationException(Throwable cause) {
29 | super(cause);
30 | }
31 |
32 | public JobCreationException(String message, Throwable cause) {
33 | super(message, cause);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/exception/ProjectInternalFoldersFailedException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.exception;
22 |
23 | public class ProjectInternalFoldersFailedException extends Exception {
24 |
25 | public ProjectInternalFoldersFailedException(String message, Throwable e) {
26 | super(message, e);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/jobs/CancellableJob.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.jobs;
22 |
23 | /**
24 | * Allows a job that has been submitted to be cancelled. The CancellableJob
25 | * is responsible of unregistering with the RunningJobTracker upon cancellation.
26 | */
27 | public interface CancellableJob {
28 |
29 | /**
30 | * Cancel the running job.
31 | *
32 | * @throws Exception
33 | */
34 | public void cancelJob() throws Exception;
35 | }
36 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/jobs/flink/YarnClusterDescriptor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 | package io.hops.hopsworks.common.jobs.flink;
21 |
22 | import org.apache.flink.yarn.YarnApplicationMasterRunner;
23 |
24 | /**
25 | * Default implementation of {@link AbstractYarnClusterDescriptor} which starts
26 | * an {@link YarnApplicationMasterRunner}.
27 | */
28 | public class YarnClusterDescriptor extends AbstractYarnClusterDescriptor {
29 |
30 | @Override
31 | protected Class> getApplicationMasterClass() {
32 | return YarnApplicationMasterRunner.class;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/jobs/jobhistory/JobHeuristicDetailsComparator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.jobs.jobhistory;
22 |
23 | import java.util.Comparator;
24 |
25 | public class JobHeuristicDetailsComparator implements
26 | Comparator {
27 |
28 | @Override
29 | public int compare(JobHeuristicDetailsDTO t, JobHeuristicDetailsDTO t1) {
30 |
31 | return Long.compare(t.getExecutionTime(), t1.getExecutionTime());
32 |
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/jobs/yarn/AnacondaProperties.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.jobs.yarn;
22 |
23 | /**
24 | *
25 | *
26 | */
27 | public class AnacondaProperties {
28 |
29 | private String envPath;
30 |
31 | public AnacondaProperties(String envPath) {
32 | this.envPath = envPath;
33 | }
34 |
35 | public String getEnvPath() {
36 | return envPath;
37 | }
38 |
39 | public void setEnvPath(String envPath) {
40 | this.envPath = envPath;
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/jobs/yarn/YarnSetupCommand.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.jobs.yarn;
22 |
23 | public abstract class YarnSetupCommand {
24 |
25 | public abstract void execute(YarnRunner r);
26 | }
27 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/metadata/exception/DatabaseException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.metadata.exception;
22 |
23 | public class DatabaseException extends Exception {
24 |
25 | private String exception;
26 |
27 | public DatabaseException(String exception) {
28 | super(exception);
29 | }
30 |
31 | public DatabaseException(String exception, Throwable throwable) {
32 | super(exception, throwable);
33 | }
34 |
35 | @Override
36 | public String getMessage() {
37 | return this.exception;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/security/CertificateType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.common.security;
22 |
23 | public enum CertificateType {
24 | PROJECT_USER("ProjectUser"),
25 | HOST("Host"),
26 | APP("App"),
27 | DELA("Dela");
28 |
29 | private final String certType;
30 |
31 | CertificateType(String certType) {
32 | this.certType = certType;
33 | }
34 |
35 | public String toString() {
36 | return certType;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/util/templates/ConfigReplacementPolicy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 | package io.hops.hopsworks.common.util.templates;
21 |
22 | /**
23 | * Interface for configuration templates replacement policies
24 | */
25 | public interface ConfigReplacementPolicy {
26 | String replace(String originalValue, String userValue);
27 | }
28 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/util/templates/IgnoreConfigReplacementPolicy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 | package io.hops.hopsworks.common.util.templates;
21 |
22 | /**
23 | * Replacement policy for configuration templates that ignores the new value.
24 | */
25 | public class IgnoreConfigReplacementPolicy implements ConfigReplacementPolicy {
26 | @Override
27 | public String replace(String originalValue, String userValue) {
28 | return originalValue;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/java/io/hops/hopsworks/common/util/templates/OverwriteConfigReplacementPolicy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 | package io.hops.hopsworks.common.util.templates;
21 |
22 | /**
23 | * Replacement policy for configuration templates that completely overwrites the old value.
24 | */
25 | public class OverwriteConfigReplacementPolicy implements ConfigReplacementPolicy {
26 | @Override
27 | public String replace(String originalValue, String userValue) {
28 | return userValue;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/META-INF/batch-jobs/authorizedKeysJob.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/io/hops/jupyter/custom_template.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | // Put jupyter in single-tab mode - needed as it is embedded in an iframe
22 | // http://jupyter-notebook.readthedocs.io/en/latest/public_server.html#notebook-server-security
23 | // http://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html
24 | //
25 |
26 | // custom.js file to set `Jupyter._target` to `_self`.prototype
27 | // define(['base/js/namespace'], function(Jupyter){
28 | // Jupyter._target = '_self';
29 | //});
30 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/io/hops/jupyter/kernel_template.json:
--------------------------------------------------------------------------------
1 | {
2 | "display_name": "python-%%hdfs_user%%",
3 | "language": "python",
4 | "argv": [
5 | "%%anaconda_home%%/bin/python",
6 | "-m",
7 | "ipykernel_launcher",
8 | "-f",
9 | "{connection_file}"
10 | ],
11 | "env": {
12 | "HADOOP_HOME": "%%hadoop_home%%",
13 | "HADOOP_HDFS_HOME": "%%hadoop_home%%",
14 | "HADOOP_CONF_DIR": "%%hadoop_home%%/etc/hadoop",
15 | "PDIR": "%%secret_dir%%",
16 | "HADOOP_USER_NAME": "%%hdfs_user%%",
17 | "LIBHDFS_OPTS": "-Xmx96m",
18 | "HADOOP_VERSION": "%%hadoop_version%%"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/io/hops/rstudio/environment_variables:
--------------------------------------------------------------------------------
1 | https://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html
2 |
3 |
4 |
5 | R_PROFILE_USER
6 |
7 | R_ENVIRON - name of the site file
8 | R_ENVIRON_USER - name of the user
9 |
10 |
11 | R_HOME - set to the user private directory
12 |
13 | --no-init-file was given, R searches for a user profile
14 |
15 |
16 | You can use the .Rprofile.site file to run R commands for all users when their R session starts.
17 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/io/hops/rstudio/rserver_conf:
--------------------------------------------------------------------------------
1 | # /etc/rstudio/rserver.conf
2 |
3 | www-port=%%rstudio_port%%
4 | www-address=%%rstudio_ip%%
5 |
6 | #rsession-which-r=/bin/R
7 |
8 | rsession-ld-library-path=%%hadoop_home%%/lib/native:/usr/local/cuda/lib64:/lib64
9 |
10 | auth-required-user-group=rstudio_users
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/io/hops/rstudio/rsession_conf:
--------------------------------------------------------------------------------
1 | # /etc/rstudio/rsession.conf
2 |
3 | session-timeout-minutes=%%rstudio_session_timeout%%
4 |
5 | r-libs-user=~/R/packages
6 |
7 | r-cran-repos=https://mirrors.nics.utk.edu/cran/
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/io/hops/rstudio/rstudio_users:
--------------------------------------------------------------------------------
1 | # /etc/rstudio/rstudio_users
2 |
3 |
--------------------------------------------------------------------------------
/hopsworks-common/src/main/resources/io/hops/zeppelin/zeppelin_env_template.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | export MASTER=yarn
3 | export ZEPPELIN_JAVA_OPTS=""
4 | export SPARK_HOME=%%spark_dir%%
5 | export HADOOP_HOME=%%hadoop_dir%%
6 | export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
7 | export HADOOP_HDFS_HOME=$HADOOP_HOME
8 | export HADOOP_USER_NAME=%%hadoop_username%%
9 | export JAVA_HOME=%%java_home%%
10 | export LD_LIBRARY_PATH=${HADOOP_HOME}/lib/native:${JAVA_HOME}/jre/lib/amd64/server:%%cuda_dir%%/lib64:/usr/local/lib:/usr/lib:%%ld_library_path%%
11 | export CLASSPATH=%%hadoop_classpath%%
12 | export SPARK_SUBMIT_OPTIONS="%%spark_options%%"
13 |
14 | # This is to get matplotlib to not try and use the local $DISPLAY
15 | export MPLBACKEND="agg"
16 |
17 | # These are setting the project-specific conda environment directory for python
18 | export PYSPARK_PYTHON=%%anaconda_env_dir%%/bin/python
19 |
20 |
21 | # https://community.hortonworks.com/questions/16436/cants-get-pyspark-interpreter-to-work-on-zeppelin.html
22 | # export PYTHONPATH=%%anaconda_env_dir%%
23 | export PYLIB=%%anaconda_env_dir%%/lib
--------------------------------------------------------------------------------
/hopsworks-dela/src/main/java/io/hops/hopsworks/dela/TransferDela.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.dela;
22 |
23 | public class TransferDela {
24 | public static final String CONTACT = "/vod/endpoint";
25 | }
26 |
--------------------------------------------------------------------------------
/hopsworks-dela/src/main/java/io/hops/hopsworks/dela/hopssite/HopsSiteExceptions.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.dela.hopssite;
22 |
23 | public enum HopsSiteExceptions {
24 | ALREADY_REGISTERED;
25 |
26 | public boolean is(String msg) {
27 | if(this.name().toLowerCase().equals(msg.toLowerCase())) {
28 | return true;
29 | }
30 | return false;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/hopsworks-dela/src/main/java/io/hops/hopsworks/dela/old_dto/ErrorDescJSON.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.dela.old_dto;
22 |
23 | import javax.xml.bind.annotation.XmlRootElement;
24 |
25 | @XmlRootElement
26 | public class ErrorDescJSON {
27 |
28 | private String details;
29 |
30 | public ErrorDescJSON(String details) {
31 | this.details = details;
32 | }
33 |
34 | public ErrorDescJSON() {
35 | }
36 |
37 | public String getDetails() {
38 | return details;
39 | }
40 |
41 | public void setDetails(String details) {
42 | this.details = details;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/hopsworks-dela/src/main/java/io/hops/hopsworks/dela/old_dto/HopsResource.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.dela.old_dto;
22 |
23 | public class HopsResource {
24 |
25 | private final int projectId;
26 |
27 | public HopsResource(int projectId) {
28 | this.projectId = projectId;
29 | }
30 |
31 | public int getProjectId() {
32 | return projectId;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hopsworks-dela/src/main/java/io/hops/hopsworks/dela/old_dto/RemoveTorrentDTO.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.dela.old_dto;
22 |
23 | import javax.xml.bind.annotation.XmlRootElement;
24 |
25 | @XmlRootElement
26 | public class RemoveTorrentDTO {
27 |
28 | private String torrentId;
29 |
30 | public RemoveTorrentDTO() {
31 | }
32 |
33 | public String getTorrentId() {
34 | return torrentId;
35 | }
36 |
37 | public void setTorrentId(String torrentId) {
38 | this.torrentId = torrentId;
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/hopsworks-dela/src/main/java/io/hops/hopsworks/dela/old_hopssite_dto/RateIdDTO.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.dela.old_hopssite_dto;
22 |
23 | import javax.xml.bind.annotation.XmlRootElement;
24 |
25 | @XmlRootElement
26 | public class RateIdDTO {
27 | private Integer id;
28 |
29 | public RateIdDTO() {
30 | }
31 |
32 | public RateIdDTO(Integer id) {
33 | this.id = id;
34 | }
35 |
36 | public Integer getId() {
37 | return id;
38 | }
39 |
40 | public void setId(Integer id) {
41 | this.id = id;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/hopsworks-dela/src/main/resources/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/hopsworks-ear/src/main/application/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/.env.example:
--------------------------------------------------------------------------------
1 | # Copy this to .env and update values
2 | WEB_HOST=hopslocal # Web host local or remote
3 | WEB_PORT=8080 # Web port local or remote
4 | DB_HOST=hopslocal # Database host local or remote
5 | DB_PORT=3306 # Database port local or remote
6 | PROJECT_DIR=/home/tkak/hops/hopsworks # where hopsworks project is.
7 | RSPEC_REPORT=/hopsworks-ear/target/test-report.html # where to put the report name should be test-report.html.
8 | HOPSWORKS_API=/hopsworks-api/api # The path to the rest api to be tested.
9 | HOPSWORKS_ADMIN=/hopsworks-admin/ # The path to hopsworks admin pages.
10 | LAUNCH_BROWSER=false # If set to true will launch test report in a browser
11 |
12 | # Only if local
13 | RSPEC_USER_DIR=/home/hopsworks/user/hopsworks-chef # The path to vagrant if local.
14 |
15 | # Only if remote
16 | RSPEC_SSH=true # If vagrant is remote or not.
17 | RSPEC_SSH_USER=vagrant # The user on the remote machine.
18 | RSPEC_SSH_HOST=hopslocal # The host where the remote vagrant is.
19 | RSPEC_SSH_PORT=10022 # The port where the remote vagrant is.
20 | RSPEC_SSH_USER_DIR=/home/username/hopsworks-chef # The path to vagrant in the remote machine.
21 | RSPEC_VAGRANT_HDFS_USER=vagrant # Vagrant if single user vm or hdfs otherwise
22 | RSPEC_VAGRANT_MYSQL_USER=vagrant # Vagrant if single user vm or mysql otherwise
23 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/.rspec:
--------------------------------------------------------------------------------
1 | --color
2 | --format documentation
3 | --require spec_helper
4 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/.ruby-gemset:
--------------------------------------------------------------------------------
1 | hopsworks
2 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/.ruby-version:
--------------------------------------------------------------------------------
1 | ruby-2.3.1
2 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/Gemfile:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | # A sample Gemfile
3 | source "https://rubygems.org"
4 |
5 | gem "rspec", "3.4.0"
6 | gem 'airborne', '0.2.5'
7 | gem 'activerecord', '4.2.6'
8 | gem 'mysql2', '0.4.4'
9 | gem 'net-ssh', '~> 2.1.0'
10 | gem 'session', '3.2.0'
11 | gem 'coderay', '1.1.1'
12 | gem 'rspec_junit_formatter'
13 | gem 'file-tail'
14 |
15 | group :development do
16 | gem 'dotenv'
17 | gem 'byebug'
18 | gem 'net-ssh-shell'
19 | end
20 |
21 | # gem "factory_girl", "~> 4"
22 | # gem 'activerecord', '4.2.6', platform: :ruby
23 | # gem 'activerecord-jdbc-adapter', '~> 1.3', platform: :jruby
24 | # gem 'mysql2', '0.4.4', platform: :ruby
25 | # gem 'jdbc-mysql', '~> 5.1', platform: :jruby
26 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/bbc_group.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | class BbcGroup < ActiveRecord::Base
20 | def self.table_name
21 | "bbc_group"
22 | end
23 | end
24 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/cluster_cert.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | class ClusterCert < ActiveRecord::Base
20 | def self.table_name
21 | "cluster_cert"
22 | end
23 | end
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/conda_commands.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 |
20 | class CondaCommands < ActiveRecord::Base
21 | def self.table_name
22 | "conda_commands"
23 | end
24 | end
25 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/dataset.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | class Dataset < ActiveRecord::Base
20 | def self.table_name
21 | "dataset"
22 | end
23 | end
24 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/project.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | class Project < ActiveRecord::Base
20 | def self.table_name
21 | "project"
22 | end
23 | end
24 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/user.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | class User < ActiveRecord::Base
20 | end
21 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/user_group.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | class UserGroup < ActiveRecord::Base
20 | def self.table_name
21 | "user_group"
22 | end
23 | end
24 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/factories/variables.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | class Variables < ActiveRecord::Base
20 | def self.table_name
21 | "variables"
22 | end
23 | end
24 |
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/helpers/conda_helper.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | module CondaHelper
20 |
21 | def wait_for
22 | timeout = 600
23 | start = Time.now
24 | x = yield
25 | until x
26 | if Time.now - start > timeout
27 | raise "Timed out waiting for Anaconda to finish. Timeout #{timeout} sec"
28 | end
29 | sleep(1)
30 | x = yield
31 | end
32 | end
33 | end
--------------------------------------------------------------------------------
/hopsworks-ear/test/spec/helpers/factory_helper.rb:
--------------------------------------------------------------------------------
1 | =begin
2 | Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | software and associated documentation files (the "Software"), to deal in the Software
6 | without restriction, including without limitation the rights to use, copy, modify, merge,
7 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all copies or
11 | substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | =end
19 | module FactoryHelper
20 | def random_id
21 | SecureRandom.hex(20)
22 | end
23 |
24 | def short_random_id
25 | SecureRandom.hex(4)
26 | end
27 |
28 | def pr(res)
29 | res.on_output do |val1, val2|
30 | # a is the process itself, b is the output
31 | p val2
32 | end
33 | # puts "Exit Status:#{res.exit_status}"
34 | # puts "Command Executed:#{res.command}"
35 | end
36 | end
37 |
--------------------------------------------------------------------------------
/hopsworks-kmon/faces-config.NavData:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/struct/ChartModel.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.struct;
22 |
23 | public enum ChartModel {
24 |
25 | LINE,
26 | LINES,
27 | SUM_LINE,
28 | AVG_LINE,
29 | AREA,
30 | AREA_STACK
31 | }
32 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/struct/CollectdBasicType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.struct;
22 |
23 | public enum CollectdBasicType {
24 |
25 | guage,
26 | counter,
27 | derive,
28 | absolute,
29 | memory
30 | }
31 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/struct/CollectdPluginInstanceType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.struct;
22 |
23 | public enum CollectdPluginInstanceType {
24 |
25 | ndbinfo,
26 | FSNamesystem,
27 | FSNamesystemState,
28 | NameNodeActivity,
29 | DataNodeActivity,
30 | NodeManager,
31 | ResourceManager
32 | }
33 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/struct/CollectdPluginType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.struct;
22 |
23 | public enum CollectdPluginType {
24 |
25 | dbi,
26 | GenericJMX
27 | }
28 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/struct/ColorType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.struct;
22 |
23 | public enum ColorType {
24 |
25 | GREEN,
26 | RED,
27 | BLUE,
28 | YELLOW
29 | }
30 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/struct/DatePeriod.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.struct;
22 |
23 | public class DatePeriod {
24 |
25 | private String label;
26 | private String value;
27 |
28 | public DatePeriod(String label, String value) {
29 | this.label = label;
30 | this.value = value;
31 | }
32 |
33 | public String getLabel() {
34 | return label;
35 | }
36 |
37 | public String getValue() {
38 | return value;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/struct/GroupType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.struct;
22 |
23 | public enum GroupType {
24 |
25 | HDFS,
26 | YARN,
27 | HISTORY_SERVERS,
28 | kafka,
29 | NDB,
30 | Monitoring,
31 | ELK,
32 | Hops,
33 | livy,
34 | Hive,
35 | SSH
36 | }
37 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/utils/FilterUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.utils;
22 |
23 | import javax.faces.model.SelectItem;
24 |
25 | public class FilterUtils {
26 |
27 | public static SelectItem[] createFilterOptions(Object[] data) {
28 | SelectItem[] options = new SelectItem[data.length + 1];
29 | options[0] = new SelectItem("", "Any");
30 | for (int i = 0; i < data.length; i++) {
31 | options[i + 1] = new SelectItem(data[i].toString(), data[i].toString());
32 | }
33 | return options;
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/java/io/hops/hopsworks/kmon/utils/UrlUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | package io.hops.hopsworks.kmon.utils;
22 |
23 | import java.util.HashMap;
24 | import java.util.Map;
25 |
26 | public class UrlUtils {
27 |
28 | public static String addParams(String url, HashMap params) {
29 | for (Map.Entry entry : params.entrySet()) {
30 | url += entry.getKey() + "=" + entry.getValue() + "&";
31 | }
32 | return url;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/webapp/resources/images/ajax-loader.GIF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-kmon/src/main/webapp/resources/images/ajax-loader.GIF
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/webapp/resources/images/ajaxloadingbar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-kmon/src/main/webapp/resources/images/ajaxloadingbar.gif
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/webapp/resources/images/hops-black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-kmon/src/main/webapp/resources/images/hops-black.png
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/webapp/resources/images/views/hadoop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-kmon/src/main/webapp/resources/images/views/hadoop.png
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/webapp/resources/primefaces-bootstrap/images/ui-icons_333333_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-kmon/src/main/webapp/resources/primefaces-bootstrap/images/ui-icons_333333_256x240.png
--------------------------------------------------------------------------------
/hopsworks-kmon/src/main/webapp/resources/primefaces-bootstrap/images/ui-icons_ffffff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-kmon/src/main/webapp/resources/primefaces-bootstrap/images/ui-icons_ffffff_256x240.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/.bowerrc:
--------------------------------------------------------------------------------
1 | {
2 | "registry": "https://registry.bower.io"
3 | }
4 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/.buildignore:
--------------------------------------------------------------------------------
1 | *.coffee
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/footer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/header.html:
--------------------------------------------------------------------------------
1 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
{{ projectCtrl.currentProject.projectName}} / Jobs
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/back.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/checkbox_false.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/checkbox_false_old.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/checkbox_intermediate.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/checkbox_true.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/checkbox_true_old.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/cloud_upload.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/dela-green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/dela-green.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/delete.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/delete_forever.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/download.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/experiment.xcf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/experiment.xcf
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/file_upload.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/folder.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/folder_black.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/folder_new.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/folder_open.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/folder_shared.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/googleAuth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/googleAuth.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/hops-black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/hops-black.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/hops.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/hops.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/jupyter-200x200-bw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/jupyter-200x200-bw.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/jupyter-200x200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/jupyter-200x200.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/jupyter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/jupyter.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/kafka_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/kafka_logo.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/list.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/login-2fa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/login-2fa.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/preview.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/python_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/python_logo.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/qrExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/qrExample.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/qrExample1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/qrExample1.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/rstudio-color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/rstudio-color.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/rstudio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/rstudio.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/select2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/select2.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/spark_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/spark_logo.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/spark_logo_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/spark_logo_white.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/tf-175x200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/tf-175x200.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/tf-175x200_bw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/tf-175x200_bw.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/zepLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/zepLogo.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/images/zeppelin_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dc-sics/hopsworks/750106ec1fb966a78181dc5d65bb58310edc865a/hopsworks-web/yo/app/images/zeppelin_logo.png
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/robots.txt:
--------------------------------------------------------------------------------
1 | # robotstxt.org
2 |
3 | User-agent: *
4 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/controllers/alertCtrl.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp')
24 | .controller('AlertCtrl', ['$uibModalInstance', '$scope', 'title', 'msg',
25 | function ($uibModalInstance, $scope, title, msg) {
26 |
27 | var self = this;
28 | self.title = title;
29 | self.msg = msg;
30 |
31 | self.ok = function () {
32 | $uibModalInstance.close();
33 | };
34 | }]);
35 |
36 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/directives/hwPanel.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp').directive('hwPanel', function() {
24 | return {
25 | restrict: 'E',
26 | scope: {
27 | content: '=',
28 | cardIndex: '=',
29 | pageNo: '=',
30 | detailsFn: '&',
31 | addFn: '&',
32 | downloadFn: '&'
33 | },
34 | templateUrl:'views/publicDSPanel.html',
35 | controller: 'PublicDSPanelCtrl as publicDSPanelCtrl'
36 | };
37 | });
38 |
39 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/directives/hwcard.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp').directive('hwCard', function() {
24 | return {
25 | restrict: 'E',
26 | scope: {
27 | content: '=',
28 | limit: '=',
29 | cardIndex: '=',
30 | pageNo: '=',
31 | delaEnabled: '=',
32 | detailsFn: '&',
33 | downloadFn: '&'
34 | },
35 | templateUrl:'views/card.html',
36 | controller: 'CardCtrl as cardCtrl'
37 | };
38 | });
39 |
40 |
41 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/services/ActivityService.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp')
24 | .factory('ActivityService', ['$http', function ($http) {
25 | var service = {
26 | getByUser: function () {
27 | return $http.get('/api/activity');
28 | },
29 | getByProjectId: function (id) {
30 | return $http.get('/api/activity/' + id);
31 | }
32 | };
33 | return service;
34 | }]);
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/services/DelaClusterService.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 | angular.module('hopsWorksApp')
23 | .factory('DelaClusterService', ['$http', function ($http) {
24 | var service = {
25 | getLocalPublicDatasets: function() {
26 | return $http({
27 | method: 'GET',
28 | url: '/api/delacluster',
29 | isArray: true});
30 | }
31 | };
32 | return service;
33 | }]);
34 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/services/EndpointService.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | /*global angular: false */
22 |
23 | 'use strict';
24 |
25 | angular.module('hopsWorksApp')
26 | .factory('EndpointService', ['$http', function ($http) {
27 | var service = {
28 |
29 | findEndpoint: function () {
30 | return $http.get('/api/endpoint');
31 | }
32 | };
33 | return service;
34 | }]);
35 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/services/FileUploadService.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp')
24 | .factory('FileUpload', ['$http', function ($http) {
25 | return function (projectId, path) {
26 | return new Flow({target: getPathname() + '/api/project/' + projectId + '/dataset/upload/' + path});
27 | };
28 | }]);
29 |
30 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/services/MembersService.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp')
24 | .factory('MembersService', ['$resource', function ($resource) {
25 | return $resource("/api/project/:id/projectMembers/:email",
26 | {id: "@id", email: "@email"},
27 | {
28 | 'save': {
29 | method: 'POST',
30 | headers: {'Content-Type': 'application/json; charset=UTF-8'}
31 | },
32 | 'update': {method: 'POST'}
33 | });
34 | }]);
35 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/services/ProjectHistoryService.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp')
24 |
25 | .factory('ProjectHistoryService', ['$http', function ($http) {
26 | var service = {
27 | getByUser: function () {
28 | return $http.get('/api/history');
29 | },
30 | getByProjectId: function (id) {
31 | return $http.get('/api/history/' + id);
32 | }
33 | };
34 | return service;
35 | }]);
36 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/scripts/services/SecurityQuestionsService.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | 'use strict';
22 |
23 | angular.module('hopsWorksApp')
24 | .factory('SecurityQuestions', function () {
25 | var questions = ["Mother's maiden name?",
26 | 'Name of your first pet?',
27 | 'Name of your first love?'];
28 | return {
29 | getQuestions: function () {
30 | return questions;
31 | }
32 | };
33 |
34 | });
35 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/styles/ExampleProjectLoaderFix.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | .ng-hide.ng-hide-animate{
22 | display: none !important;
23 | }
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/styles/scrollbar.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this
5 | * software and associated documentation files (the "Software"), to deal in the Software
6 | * without restriction, including without limitation the rights to use, copy, modify, merge,
7 | * publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8 | * persons to whom the Software is furnished to do so, subject to the following conditions:
9 | *
10 | * The above copyright notice and this permission notice shall be included in all copies or
11 | * substantial portions of the Software.
12 | *
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | */
20 |
21 | div.thin-scrollbar::-webkit-scrollbar-track {
22 | -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
23 | background-color: #F5F5F5;
24 | }
25 |
26 | div.thin-scrollbar::-webkit-scrollbar {
27 | width: 5px;
28 | background-color: #F5F5F5;
29 | }
30 |
31 | div.thin-scrollbar::-webkit-scrollbar-thumb {
32 | background-color: rgba(0,0,0,.26);
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/hopsworks-web/yo/app/views/alertModal.html:
--------------------------------------------------------------------------------
1 |
20 |
21 |