Member since
05-19-2024
7
Posts
2
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
366 | 05-23-2024 06:17 AM | |
2470 | 05-20-2024 05:24 AM |
05-23-2024
06:17 AM
Nvm, solved it. There was a problem with space allocation in yarn-site.xml. I checked the logs and corrected it.
... View more
05-23-2024
05:02 AM
I am trying to run an application on using hive and hadoop. And, my YARN cluster is not recognizing any active NodeManagers Terminal output on: yarn node -list anushkakundu@AnushkaHP14:/opt/hadoop/bin$ /opt/hadoop/bin/yarn node -list
2024-05-23 17:07:47,933 INFO client.DefaultNoHARMFailoverProxyProvider: Connecting to ResourceManager at /0.0.0.0:8032
Total Nodes:0
Node-Id Node-State Node-Http-Address Number-of-Running-Containers One more thing: My terminal reads: The url to track the job: http://AnushkaHP14:8088/proxy/application_1716465092573_0001/ However http://AnushkaHP14:8088/proxy/application_1716465092573_0001/ says This site can’t be reached I have done the following: Started Hadoop (verified by running jps), started hive (metastore and hiveserver2 are active.) Modified my yarn-site.xml to allocate appropriate resources. Re stared everything. Any suggestions are really welcome.
... View more
Labels:
- Labels:
-
Apache Hive
05-22-2024
04:01 AM
1 Kudo
@tj2007, Thanks! No logs were recorded, anushkakundu@AnushkaHP14:~$ /opt/hadoop/bin/yarn logs -applicationId application_1716374810626_0001 -appOwner anushkakundu
2024-05-22 16:29:07,059 INFO client.DefaultNoHARMFailoverProxyProvider: Connecting to ResourceManager at /0.0.0.0:8032
Can not find the logs for the application: application_1716374810626_0001 with the appOwner: anushkakundu Kindly check my localhost:8088, It says: Log Aggregation Status: NOT_START could it be an issue?
... View more
05-20-2024
05:35 AM
I created a table and in beeline (hive) and it worked quickly. # Movies table
CREATE EXTERNAL TABLE movies (
movieId INT,
title STRING,
genres STRING
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
"separatorChar" = ",",
"quoteChar" = "\"",
"escapeChar" = "\\"
)
STORED AS TEXTFILE
LOCATION '/user/hive/warehouse/movielens/movies'
TBLPROPERTIES ("skip.header.line.count"="1");
# Ratings table
CREATE EXTERNAL TABLE ratings (
userId INT,
movieId INT,
rating DOUBLE,
rating_timestamp BIGINT
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
"separatorChar" = ",",
"quoteChar" = "\"",
"escapeChar" = "\\"
)
STORED AS TEXTFILE
LOCATION '/user/hive/warehouse/movielens/ratings'
TBLPROPERTIES ("skip.header.line.count"="1"); I am attempting: CREATE TABLE avg_movie_ratings AS
SELECT movieId, AVG(rating) AS avg_rating
FROM ratings
GROUP BY movieId; which starts a map-reduce job, which is struck. I have the hadoop and hive running. However, The url to track the job: http://anushkahp14:8088/proxy/application_1716189650320_0005/ returns ERR_CONNECTION_REFUSED. Please help.
... View more
Labels:
- Labels:
-
Apache Hive
05-20-2024
05:24 AM
1 Kudo
I switched to mysql and the hiveserver2 is running now. @tj2007 I setup a new username and password in mysql. Thank you 🙂
... View more
05-19-2024
09:41 PM
@Scharan I checked, I am confused. My hive-site.xml is also set properly:
... View more
05-19-2024
12:50 PM
Hello, in hive i am unable to establish a connection, beeline> !connect jdbc:hive2://localhost:10000/ Connecting to jdbc:hive2://localhost:10000/ Enter username for jdbc:hive2://localhost:10000/: I don't know what to put for username and password, it is not accepting ENTER Key or my device login details. Output: 24/05/20 01:19:08 [main]: WARN jdbc.HiveConnection: Failed to connect to localhost:10000 Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status. Enable verbose error messages (--verbose=true) for more information. Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0) Please help.
... View more
Labels:
- Labels:
-
Apache Hive