<@U06TM7M40RK> help with icons
It looks like you need help with icons in DataHub. Could you please provide more context or specify what exactly you need help with regarding icons? For example:
- Are you looking to change or customize existing icons?
- Do you need to add new icons for specific entities or features?
- Are you encountering issues with icons not displaying correctly?
Providing more details will help me give you a more precise answer. In the meantime, here are some relevant resources that might be helpful:
- https://github.com/datahub-project/datahub/blob/master/datahub-web-react/src/app/entity/mlFeatureTable/profile/features/MlFeatureDataTypeIcon.tsx|MlFeatureDataTypeIcon.tsx: This file contains the implementation of icons for different ML feature data types.
- https://github.com/datahub-project/datahub/blob/master/datahub-web-react/src/app/search/filters/render/FilterRendererRegistry.tsx|FilterRendererRegistry.tsx: This file serves as a registry for custom filter renderers, including icons.
- https://github.com/datahub-project/datahub/blob/master/datahub-web-react/src/app/lineage/LineageEntityNode.tsx|LineageEntityNode.tsx: This file includes code for rendering icons in the lineage visualization.
Would you like more details on any of these topics or something else related to icons in DataHub?
Sources:
- https://github.com/datahub-project/datahub/blob/master/datahub-web-react/src/app/entity/mlFeatureTable/profile/features/MlFeatureDataTypeIcon.tsx|MlFeatureDataTypeIcon.tsx
- https://github.com/datahub-project/datahub/blob/master/datahub-web-react/src/app/search/filters/render/FilterRendererRegistry.tsx|FilterRendererRegistry.tsx
- https://github.com/datahub-project/datahub/blob/master/datahub-web-react/src/app/lineage/LineageEntityNode.tsx|LineageEntityNode.tsx
0 button
0 button
Hint: Mention @runllm in the thread for followups.
<@U06TM7M40RK> 3. Are you encountering issues with icons not displaying correctly? Yes
If you are encountering issues with icons not displaying correctly in DataHub, there are a few common causes and solutions you can try:
- Ingesting
data_platforms.json
:- In some versions of DataHub, icons for data platforms are not displayed correctly because the
data_platforms.json
file has not been ingested. This file contains the necessary metadata for platform icons. - You can ingest the
data_platforms.json
file using the following configuration:
- In some versions of DataHub, icons for data platforms are not displayed correctly because the
source:
type: "file"
config:
filename: ./examples/mce_files/data_platforms.json
sink:
type: "datahub-kafka"
config:
connection:
bootstrap: localhost:9092
-
Check for Correct URLs:
- Ensure that the URLs for the icons are correct. Sometimes, the issue might be due to incorrect URLs being used for the icons. For example, the URL might point to a non-existent resource or an incorrect path.
- Verify that the URLs in your
data_platforms.json
or other configuration files are correct and accessible.
-
Local vs. External Resources:
- There might be a mix-up between local and external resources. For instance, some logos might be fetched from GitHub while others are expected to be served locally.
- Ensure that your configuration is consistent and that all icons are either served locally or fetched from a valid external source.
-
Browser Console Errors:
- Check the browser console for any errors related to loading resources. This can provide clues about what might be going wrong.
- Look for 404 errors or other network-related issues that indicate the icons are not being found.
-
Version-Specific Issues:
- Some issues might be specific to certain versions of DataHub. Make sure you are using a version that does not have known issues with icon display.
- If you are using an older version, consider upgrading to a newer version where the issue might have been fixed.
Would you like more detailed steps on any of these troubleshooting points or further assistance on a specific part of the process?
Sources:
- <Issues · datahub-project/datahub · GitHub Issue: DBMS avatars not being displayed>
- <Slack Discussion on Resource Routing>
0 button
0 button
Hint: Mention @runllm in the thread for followups.
<@U06TM7M40RK> i need a pratical exemple about this configuration data_platforms
Certainly! Here is a practical example of how to configure and ingest a custom data platform using the data_platforms.json
file in DataHub.
Step-by-Step Guide
- Create the
data_platforms.json
File:- Create a JSON file named
data_platforms.json
with the necessary metadata for your custom data platform. Here is an example configuration:
- Create a JSON file named
[
{
"auditHeader": null,
"proposedSnapshot": {
"com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot": {
"urn": "urn:li:dataPlatform:MyCustomDataPlatform",
"aspects": [
{
"com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo": {
"datasetNameDelimiter": "/",
"name": "My Custom Data Platform",
"type": "OTHERS",
"logoUrl": "https://example.com/my-custom-logo.png"
}
}
]
}
},
"proposedDelta": null
}
]
- Create the Ingestion Recipe:
- Create a YAML file named
data_platform_ingestion_recipe.yaml
to configure the ingestion process. This file will specify the source as thedata_platforms.json
file and the sink as DataHub.
- Create a YAML file named
source:
type: "file"
config:
filename: "./data_platforms.json"
sink:
type: "datahub-rest"
config:
server: "http://localhost:8080" # Update with your DataHub server URL
- Run the Ingestion:
- Use the DataHub CLI to run the ingestion process. Ensure you have the DataHub CLI installed. If not, you can install it using
pip install acryl-datahub
.
- Use the DataHub CLI to run the ingestion process. Ensure you have the DataHub CLI installed. If not, you can install it using
datahub ingest -c data_platform_ingestion_recipe.yaml
Example Code Snippet
Here is the complete example in a structured format:
data_platforms.json:
[
{
"auditHeader": null,
"proposedSnapshot": {
"com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot": {
"urn": "urn:li:dataPlatform:MyCustomDataPlatform",
"aspects": [
{
"com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo": {
"datasetNameDelimiter": "/",
"name": "My Custom Data Platform",
"type": "OTHERS",
"logoUrl": "https://example.com/my-custom-logo.png"
}
}
]
}
},
"proposedDelta": null
}
]
data_platform_ingestion_recipe.yaml:
source:
type: "file"
config:
filename: "./data_platforms.json"
sink:
type: "datahub-rest"
config:
server: "http://localhost:8080" # Update with your DataHub server URL
Ingestion Command:
datahub ingest -c data_platform_ingestion_recipe.yaml
Explanation
- data_platforms.json: This file defines the custom data platform with its metadata, including the name, type, and logo URL.
- data_platform_ingestion_recipe.yaml: This YAML file configures the ingestion process, specifying the source as the
data_platforms.json
file and the sink as the DataHub REST API. - Ingestion Command: The
datahub ingest
command runs the ingestion process using the specified YAML configuration.
Would you like more detailed steps or troubleshooting tips?
Sources:
- <https://github.com/datahub-project/datahub/blob/master/docs/how/add-custom-data-platform.md|Adding a custom Dataset Data Platform>
0 button
0 button
Hint: Mention @runllm in the thread for followups.
<@U06TM7M40RK> this is the issue
Sure thing! I’m looking through the available data to answer your question. Hold on a second…
<@U06TM7M40RK> shoud be like