Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running amundsen in ec2 results in error #77

Closed
javamonkey79 opened this issue Jun 1, 2019 · 4 comments
Closed

running amundsen in ec2 results in error #77

javamonkey79 opened this issue Jun 1, 2019 · 4 comments

Comments

@javamonkey79
Copy link
Contributor

  1. Create an ec2 instance (I am working with t2.xlarge)
  2. switch to root (sudo su)
  3. run the following commands
yum update -y && \
yum install -y docker && \
yum install -y git && \
service docker start && \
sudo usermod -aG docker ec2-user && \
mkdir /amundsen && \
cd /amundsen && \
git clone https://github.com/lyft/amundsenfrontendlibrary && \
git clone https://github.com/lyft/amundsenmetadatalibrary && \
git clone https://github.com/lyft/amundsensearchlibrary && \
cd /amundsen/amundsenmetadatalibrary/ && \
docker build -f public.Dockerfile -t amundsendev/amundsen-metadata:latest . && \
cd /amundsen/amundsenfrontendlibrary/ && \
docker build -f public.Dockerfile -t amundsendev/amundsen-frontend:latest . && \
cd /amundsen/amundsensearchlibrary/ && \
docker build -f public.Dockerfile -t amundsendev/amundsen-search:latest . && \
cd /amundsen && \
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose && \
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose && \
docker-compose -f amundsenfrontendlibrary/docker-amundsen.yml up

Note the following errors:

es_amundsen         | [1]: max file descriptors [40000] for elasticsearch process is too low, increase to at least [65535]
es_amundsen         | [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
@javamonkey79
Copy link
Contributor Author

Updating the ulimit in the docker-compose file still gives this:

es_amundsen         | ERROR: [1] bootstrap checks failed
es_amundsen         | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
es_amundsen         | [2019-06-01T00:07:09,462][INFO ][o.e.n.Node               ] [IhZCZcZ] stopping ...
es_amundsen         | [2019-06-01T00:07:09,493][INFO ][o.e.n.Node               ] [IhZCZcZ] stopped
es_amundsen         | [2019-06-01T00:07:09,493][INFO ][o.e.n.Node               ] [IhZCZcZ] closing ...
es_amundsen         | [2019-06-01T00:07:09,520][INFO ][o.e.n.Node               ] [IhZCZcZ] closed
es_amundsen         | [2019-06-01T00:07:09,523][INFO ][o.e.x.m.p.NativeController] [IhZCZcZ] Native controller process has stopped - no new native processes can be started
es_amundsen exited with code 78

@javamonkey79
Copy link
Contributor Author

javamonkey79 commented Jun 1, 2019

This is related to docker/compose#4143

Basically, you need to run this on your host system (ec2) first:
sudo sysctl -w vm.max_map_count=262144

I fixed the file descriptor issue by modifying my docker compose file:

  elasticsearch:
      image: elasticsearch:6.7.0
      container_name: es_amundsen
      ports:
          - 9200:9200
      networks:
        - amundsennet
      ulimits:
        nofile:
          soft: 1000000
          hard: 1000000

@ttannis ttannis transferred this issue from amundsen-io/amundsenfrontendlibrary Aug 7, 2019
gabrielucelli pushed a commit to gabrielucelli/amundsen that referenced this issue Jan 28, 2020
@Jwan622
Copy link

Jwan622 commented Apr 16, 2020

Does the docker compose yaml file not exist anymore?

@feng-tao
Copy link
Member

benrifkind pushed a commit to benrifkind/amundsen that referenced this issue Dec 16, 2020
…n-io#77)

* Uses basic search instead of advanced DSL for popular tables

* Updates test cases based on the change of popular tables

* Using the cache manager to class level to improve the test cases

* Makes sure to fetch only active tables

* Bump the version

* Bumps the version
dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
Signed-off-by: feng-tao <fengtao04@gmail.com>
dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
Signed-off-by: feng-tao <fengtao04@gmail.com>
dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
Signed-off-by: feng-tao <fengtao04@gmail.com>
dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
…n-io#77)

* Uses basic search instead of advanced DSL for popular tables

* Updates test cases based on the change of popular tables

* Using the cache manager to class level to improve the test cases

* Makes sure to fetch only active tables

* Bump the version

* Bumps the version
dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
feng-tao pushed a commit that referenced this issue May 7, 2021
feng-tao pushed a commit that referenced this issue May 7, 2021
* Uses basic search instead of advanced DSL for popular tables

* Updates test cases based on the change of popular tables

* Using the cache manager to class level to improve the test cases

* Makes sure to fetch only active tables

* Bump the version

* Bumps the version
feng-tao added a commit that referenced this issue May 7, 2021
feng-tao added a commit that referenced this issue May 7, 2021
Signed-off-by: feng-tao <fengtao04@gmail.com>
zacr pushed a commit to SaltIO/amundsen that referenced this issue May 13, 2022
…n-io#77)

* Uses basic search instead of advanced DSL for popular tables

* Updates test cases based on the change of popular tables

* Using the cache manager to class level to improve the test cases

* Makes sure to fetch only active tables

* Bump the version

* Bumps the version
zacr pushed a commit to SaltIO/amundsen that referenced this issue May 13, 2022
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this issue Jun 30, 2022
Signed-off-by: feng-tao <fengtao04@gmail.com>
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this issue Jun 30, 2022
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this issue Jun 30, 2022
…n-io#77)

* Uses basic search instead of advanced DSL for popular tables

* Updates test cases based on the change of popular tables

* Using the cache manager to class level to improve the test cases

* Makes sure to fetch only active tables

* Bump the version

* Bumps the version
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this issue Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants