alert-hydrogen-52567
03/05/2022, 5:53 PMFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':metadata-models:generateAvroSchema'.
> Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 1
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Can anyone kindly provide me any suggestions why this is happening and how I can resolve this? Thanks.numerous-stone-82040
03/07/2022, 2:40 PM./gradlew :metadata-models:build --debug
it might give you more informationsalert-hydrogen-52567
03/07/2022, 8:13 PM15:08:43.856 [ERROR] [system.err] Exception in thread "main" java.lang.IllegalArgumentException: com.linkedin.testType.testTypeInfo has namespace that does not match file path '/home/ishtiaquemis1994/Desktop/datahub/metadata-models/src/main/pegasus/com/linkedin/rule/testTypeInfo.pdl'
I feel that I put the files in the right places. I am not exactly sure here what I am doing wrong. I took the DashboardInfo.pdl as my template.alert-hydrogen-52567
03/07/2022, 9:10 PM16:04:55.817 [ERROR] [system.err] "ruleInfo" or "com.linkedin.metadata.aspect.testTypeInfo" cannot be resolved.
16:04:55.817 [ERROR] [system.err] 18,2: Type not found: testTypeInfo
I think I have made a mistake with the aspect file. I named it testType.pdl? Is this a naming issue? Or, there is any other mistake that I have made?orange-night-91387
03/08/2022, 3:52 PMcom/linkedin/dashboard/DashboardInfo.pdl
namespace com.linkedin.dashboard
import com.linkedin.common.Time
...
The error you have looks like you have made an error with the field name "ruleInfo" in your custom typealert-hydrogen-52567
03/08/2022, 4:12 PMorange-night-91387
03/08/2022, 4:49 PM./gradlew :metadata-models:build
./gradlew :metadata-models:generateDataTemplate
./gradlew :metadata-models:mainTranslateSchemas
or other tasks specific to the metadata-models module, if you open up the project in IntelliJ you can see a full list in the gradle sidepanel
It just depends on what you want to actually executealert-hydrogen-52567
03/08/2022, 8:59 PMimport com.linkedin.common.ChartUrn
But when I go into the common directory, I don't see any file with the name chartUrn. The same with dashboard too. Why is that? Where should I, lets say, myMetadataUrn.pdl create? And, I don't have a template that I can follow.alert-hydrogen-52567
03/08/2022, 9:18 PMorange-night-91387
03/08/2022, 10:26 PMorange-night-91387
03/08/2022, 10:32 PMalert-hydrogen-52567
03/10/2022, 2:53 PMalert-hydrogen-52567
03/10/2022, 3:58 PMcurl '<http://localhost:8080/entities?action=ingest>' -X POST --data '{
"entity":{
"value":{
"com.linkedin.metadata.snapshot.ChartSnapshot":{
And, to create the snapshot, if I understood correctly, I will need to define my custom type URN. What can be a solution to this?orange-night-91387
03/10/2022, 8:51 PMdatahub put
CLIalert-hydrogen-52567
03/10/2022, 9:57 PM