Alter hive table add or drop column

You cannot drop column directly from a table using command ALTER TABLE table_name drop col_name; The only way to drop column is using replace command. Lets say, I have a table emp with id, name and dept column. I want to drop id column of table emp. So provide all those columns which you want … Read more

how to replace characters in hive?

regexp_replace UDF performs my task. Below is the definition and usage from apache Wiki. regexp_replace(string INITIAL_STRING, string PATTERN, string REPLACEMENT): This returns the string resulting from replacing all substrings in INITIAL_STRING that match the java regular expression syntax defined in PATTERN with instances of REPLACEMENT, e.g.: regexp_replace(“foobar”, “oo|ar”, “”) returns fb

Hadoop: Connecting to ResourceManager failed

The problem connecting recource manager was because ive needed to add a few properties to yarn-site.xml : <property> <name>yarn.resourcemanager.address</name> <value>127.0.0.1:8032</value> </property> <property> <name>yarn.resourcemanager.scheduler.address</name> <value>127.0.0.1:8030</value> </property> <property> <name>yarn.resourcemanager.resource-tracker.address</name> <value>127.0.0.1:8031</value> </property> Yet, my Jobs arent runing but connecting is successful now

Hadoop: …be replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and no node(s) are excluded in this operation

This error is caused by the block replication system of HDFS since it could not manage to make any copies of a specific block within the focused file. Common reasons of that: Only a NameNode instance is running and it’s not in safe-mode There is no DataNode instances up and running, or some are dead. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)