-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72698/#review221539
-----------------------------------------------------------
The sample-app fails to run with the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java
(default-cli) on project sample-app: An exception occured while executing the
Java class. Metadata service API org.apache.atlas.AtlasClientV2$API_V2@2eff472d
failed with status 409 (Conflict) Response Body
({"errorCode":"ATLAS-409-00-002","errorMessage":"Given type sample_Table_DB has
references"}) -> [Help 1]
can you review.
atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/SampleApp.java
Lines 123 (patched)
<https://reviews.apache.org/r/72698/#comment310594>
the password here is clear text.
public static String[] getBasicAuthenticationInput() {
String username = null;
String password = null;
try {
Console console = System.console();
if (console == null) {
System.err.println("Couldn't get a console object for user
input");
System.exit(1);
}
username = console.readLine("Enter username for atlas :- ");
char[] pwdChar = console.readPassword("Enter password for atlas
:- ");
if(pwdChar != null) {
password = new String(pwdChar);
}
} catch (Exception e) {
System.out.print("Error while reading user input");
System.exit(1);
}
return new String[]{username, password};
}
- Sarath Subramanian
On Aug. 4, 2020, 9:27 a.m., Jyoti Singh wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/72698/
> -----------------------------------------------------------
>
> (Updated Aug. 4, 2020, 9:27 a.m.)
>
>
> Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, Sarath
> Subramanian, and Sidharth Mishra.
>
>
> Bugs: ATLAS-3875
> https://issues.apache.org/jira/browse/ATLAS-3875
>
>
> Repository: atlas
>
>
> Description
> -------
>
> Using this project users can get an idea as how to integrate with Atlas using
> AtlasCleint. This helps the user to understand the basic rest functionality
> of Atlas such as
>
> - EntityRest
> - TypeDefRest
> - DiscoveryRest
> - LineageRest
> - GlossaryRest
>
>
> Diffs
> -----
>
> atlas-examples/pom.xml PRE-CREATION
> atlas-examples/sample-app/README.md PRE-CREATION
> atlas-examples/sample-app/pom.xml PRE-CREATION
>
> atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/DiscoveryExample.java
> PRE-CREATION
>
> atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/EntityExample.java
> PRE-CREATION
>
> atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/GlossaryExample.java
> PRE-CREATION
>
> atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/LineageExample.java
> PRE-CREATION
>
> atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/SampleApp.java
> PRE-CREATION
>
> atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/SampleAppConstants.java
> PRE-CREATION
>
> atlas-examples/sample-app/src/main/java/org/apache/atlas/examples/sampleapp/TypeDefExample.java
> PRE-CREATION
> atlas-examples/sample-app/src/main/resources/atlas-application.properties
> PRE-CREATION
> pom.xml 5e0442ae5
>
>
> Diff: https://reviews.apache.org/r/72698/diff/7/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Jyoti Singh
>
>