Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

E: Malformed entry 1 in list file /etc/apt/sources.list.d/ambari-hdp-1.list

avatar
Explorer

Ambari version: 2.7.3.0

Ubuntu version: 16.04

When I used Ambari to deploy Hadoop cluster, Ambari created 2 file in apt source.list.d (ambari-hdp-1.list and hdp.list). So they could not run.

7 REPLIES 7

avatar
Master Mentor

@luan ha

1. How did you register the Repo URL on your ambari? Can you please share the registered repo version page from ambari UI?

2. Can you please share the file content:

# cat /etc/apt/sources.list.d/ambari-hdp-1.list

3. Where exactly do you see this error?

E: Malformed entry 1 in list file /etc/apt/sources.list.d/ambari-hdp-1.list

4. Are you using Local repo by any chance ( instead of public repos) ?

.

avatar
Explorer

Thank you for your help!!!

avatar
Explorer

1. I'm using local repo.

2. This is my file content:

deb HDP main 
deb HDP-UTILS main

3. I met loss when I was using Ambari UI to deploy HDP stack (step: Install, Start, Test).

avatar
Explorer

Hi,
This was earlier reported as a bug https://community.hortonworks.com/articles/231020/ambari-273-ambari-writes-empty-baseurl-values-writ...

The way out is to "Use the Ambari Admin to set the HDP and HDP UTIL" - Check my earlier message.

avatar
Explorer

Bingo. I solved my problems. Thank you very much. May I change to use old versions of Ambari ?

avatar
Explorer
Keep using the newer version . Hope this issue will get solved in the coming upgrades

avatar
Explorer

Hi,

Use the Ambari Admin to set the HDP and HDP UTIL Path by

1) Navigating to Admin

2) Browse to Versions.

3) Set your HDP and HDP UTIL Path and save

This will over-ride ambari-hdp-1

Proceed with the setup


Note: You can duplicate Tab - set the version and save as well. This will ensure that you do not have to re-enter all configuration/settings etc