Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apache Atlas no column names in schema

Highlighted

Apache Atlas no column names in schema

Rising Star

In Atlas WebUI I don't see names of columns on tab SCHEMA for any of my HIVE tables.

What's can be wrong?

11257-screen-atlas-no-column-name.png

9 REPLIES 9
Highlighted

Re: Apache Atlas no column names in schema

@Alena Melnikova

You are hitting the below issue, which seems to be fixed in 0.7-incubating release. Could you please let us know which version of Atlas you are using?

https://issues.apache.org/jira/browse/ATLAS-928

To fix this issue, you can either apply the patch manually to the Atlas UI code and restart atlas. OR upgrade your atlas to 0.7-incubating. Let me know if this works for you.

Highlighted

Re: Apache Atlas no column names in schema

Rising Star

Hi @Ayub Khan,

Atlas Version : 0.7.0.2.5.0.0-1245-r045c13f0bb737ac959995c4321f1247d1ce5f2e5

I guess, it is upgraded already.

Highlighted

Re: Apache Atlas no column names in schema

@Alena Melnikova

Could you please try applying the patch manually? or upgrading the HDP version from 2.5.0.0-1245 to 2.5.3.0( this is the latest GA release)?

Highlighted

Re: Apache Atlas no column names in schema

Rising Star

@Ayub Khan

As I can see file /usr/hdp/2.5.0.0-1245/atlas/server/webapp/atlas/js/collection/VSchemaList.js is already patched.

Here is my file VSchemaList.js

/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
define(['require',
    'utils/Globals',
    'collection/BaseCollection',
    'models/VSchema'
], function(require, Globals, BaseCollection, VSchema) {
    'use strict';
    var VSchemaList = BaseCollection.extend(
        //Prototypal attributes
        {
            url: Globals.baseURL,
            model: VSchema,
            initialize: function() {
                this.modelName = 'VSchema';
                this.modelAttrName = 'results';
                this.bindErrorEvents();
            },
            parseRecords: function(resp, options) {
                try {
                    if (!this.modelAttrName) {
                        throw new Error("this.modelAttrName not defined for " + this);
                    }
                    this.keyList = resp[this.modelAttrName].dataType.attributeDefinitions;
                    if (resp[this.modelAttrName].dataType.superTypes) {
                        if (resp[this.modelAttrName].dataType.superTypes.indexOf("Asset") != -1) {
                            this.keyList.push({
                                "name": "name",
                                "dataTypeName": "string",
                                "isComposite": false,
                                "isIndexable": true,
                                "isUnique": false,
                                "multiplicity": {},
                                "reverseAttributeName": null
                            })
                        }
                    }
                    var arr = [];
                    resp[this.modelAttrName].rows.forEach(function(d) {
                        arr.push(d);
                    });
                    return arr;
                } catch (e) {
                    console.log(e);
                }
            },
        },
        //Static Class Members
        {
            /**
             * Table Cols to be passed to Backgrid
             * UI has to use this as base and extend this.
             *
             */
            tableCols: {}
        }
    );
    return VSchemaList;
});

Here is patch

diff --git a/dashboardv2/public/js/collection/VSchemaList.js b/dashboardv2/public/js/collection/VSchemaList.js
index 1f03856..c11a0ba 100644
--- a/dashboardv2/public/js/collection/VSchemaList.js
+++ b/dashboardv2/public/js/collection/VSchemaList.js
@@ -38,6 +38,19 @@ define(['require',
                         throw new Error("this.modelAttrName not defined for " + this);
                     }
                     this.keyList = resp[this.modelAttrName].dataType.attributeDefinitions;
+                    if (resp[this.modelAttrName].dataType.superTypes) {
+                        if (resp[this.modelAttrName].dataType.superTypes.indexOf("Asset") != -1) {
+                            this.keyList.push({
+                                "name": "name",
+                                "dataTypeName": "string",
+                                "isComposite": false,
+                                "isIndexable": true,
+                                "isUnique": false,
+                                "multiplicity": {},
+                                "reverseAttributeName": null
+                            })
+                        }
+                    }
                     var arr = [];
                     resp[this.modelAttrName].rows.forEach(function(d) {
                         arr.push(d);
Highlighted

Re: Apache Atlas no column names in schema

Do you see any js console errors in the browser? Can you check in the browser, under developer tools to see if the JS is loaded? If not, please clear browser cache and try reloading the page.

The reason for the above step is, sometimes browser uses the cached JS which might not be the updated one?

Highlighted

Re: Apache Atlas no column names in schema

Rising Star

@Ayub Khan

There are no errors. jS is loaded. I cleared the cache three times but nothing has changed.

11289-screen-atlas-no-column-name-2.png

Re: Apache Atlas no column names in schema

Rising Star

@Ayub Khan

Do you have any ideas?

Highlighted

Re: Apache Atlas no column names in schema

@Alena Melnikova I am running out of ideas here :).

Did you check the JS loaded in the browser is same as the one having the fix? From the image you posted, I see that the Vschemalist.js is loaded from disk cache. Can you check the "Disable cache" button(please check the image you shared) and try loading the page?

Highlighted

Re: Apache Atlas no column names in schema

Rising Star

Hi @Ayub Khan

I disabled cach and reloaded the page. Nothing changes.

As I can see jS with the fix (see screenshot).

11358-screen-atlas-no-column-name-3.png

11359-screen-atlas-no-column-name-4.png

Don't have an account?
Coming from Hortonworks? Activate your account here