Hi dear community! I see the folder `metadata` in ...
# troubleshoot
s
Hi dear community! I see the folder
metadata
in
datahub/metadata-ingestion/src/*datahub*/
has been deleted, but modules in there are still used in the ingestion process. As example in:
Copy code
metadata-ingestion/src/datahub/ingestion/extractor/schema_util.py:from datahub.metadata.com.linkedin.pegasus2avro.schema import (
metadata-ingestion/src/datahub/ingestion/extractor/mce_extractor.py:from datahub.metadata.com.linkedin.pegasus2avro.mxe import (
metadata-ingestion/src/datahub/ingestion/extractor/mce_extractor.py:from datahub.metadata.schema_classes import UsageAggregationClass
metadata-ingestion/src/datahub/ingestion/api/workunit.py:from datahub.metadata.com.linkedin.pegasus2avro.mxe import (
metadata-ingestion/src/datahub/ingestion/api/workunit.py:from datahub.metadata.schema_classes import UsageAggregationClass
metadata-ingestion/src/datahub/emitter/kafka_emitter.py:from datahub.metadata.com.linkedin.pegasus2avro.mxe import (
metadata-ingestion/src/datahub/emitter/kafka_emitter.py:from datahub.metadata.schemas import (
Is this a partial code refactoring, or should we restore that folder?
s
s
Sorry, I don’t get it
s
Some files were recently deleted. They should be getting auto-generated in docker images. Are you facing some error while running metadata-ingestion?
m
@stale-jewelry-2440: the code generation should be creating these files. are they not?
@stale-jewelry-2440: I just blew away my
src/datahub/metadata
directory and re-ran
./gradlew :metadata-ingestion:codegen
and it recreated the directory for me. Let me know if you are facing issues with this.
s
That’s the trick, thank you!
@mammoth-bear-12532 🌮
😋 1