GithubHelp home page GithubHelp logo

leibniz21c / mammoth Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 5.0 32.58 MB

Mammoth is a container based hadoop distributed system log analyzer. Sponsed by Mantech and Naver Cloud Platform.

License: MIT License

Python 11.31% Java 0.06% Swift 0.51% Objective-C 0.02% Dart 67.97% CMake 6.70% C++ 10.73% C 0.61% HTML 1.64% Shell 0.46%
msa log-analyzer influxdb mongodb adobe-xd fastapi hadoop-hdfs yarn mapreduce flutter-app

mammoth's People

Contributors

leibniz21c avatar qkd1101 avatar rongga avatar yejin9989 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mammoth's Issues

MVP Log collector REST API List

POST "http://collector-ip:port/yarn/clustermetrics"

Body:

{
      "appsSubmitted": 0,
      "appsCompleted": 0,
      "appsPending": 0,
      "appsRunning": 0,
      "appsFailed": 0,
      "appsKilled": 0,
      "reservedMB": 0,
      "availableMB": 12288,
      "allocatedMB": 0,
      "reservedVirtualCores": 0,
      "availableVirtualCores": 6,
      "allocatedVirtualCores": 0,
      "containersAllocated": 0,
      "containersReserved": 0,
      "containersPending": 0,
      "totalMB": 12288,
      "totalVirtualCores": 6,
      "totalNodes": 3,
      "lostNodes": 0,
      "unhealthyNodes": 0,
      "decommissionedNodes": 0,
      "rebootedNodes": 0,
      "activeNodes": 3,
      "email": "[email protected]",
      "datetime": "2021-08-13-10:54:50"
}

POST "http://collector-ip:port/yarn/clusterapplications"

Body:

{
    "app": [
        {
        "id": "application_1628774384301_0003",
        "user": "root",
        "name": "WordCount",
        "queue": "default",
        "state": "FAILED",
        "finalStatus": "FAILED",
        "progress": 0.0,
        "trackingUI": "History",
        "trackingUrl": "http://master:8088/cluster/app/application_1628774384301_0003",
        "diagnostics": "Application application_1628774384301_0003 failed 2 times due to AM Container for appattempt_1628774384301_0003_000002 exited with  exitCode: 1\nFor more detailed output, check application tracking page:http://master:8088/cluster/app/application_1628774384301_0003Then, click on links to logs of each attempt.\nDiagnostics: Exception from container-launch.\nContainer id: container_1628774384301_0003_02_000001\nExit code: 1\nStack trace: ExitCodeException exitCode=1: \n\tat org.apache.hadoop.util.Shell.runCommand(Shell.java:585)\n\tat org.apache.hadoop.util.Shell.run(Shell.java:482)\n\tat org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:776)\n\tat org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)\n\tat org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)\n\tat org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n\tat java.lang.Thread.run(Thread.java:748)\n\n\nContainer exited with a non-zero exit code 1\nFailing this attempt. Failing the application.",
        "clusterId": 1628774384301,
        "applicationType": "MAPREDUCE",
        "applicationTags": "",
        "startedTime": 1628819851525,
        "finishedTime": 1628819852822,
        "elapsedTime": 1297,
        "amContainerLogs": "http://slave3:8042/node/containerlogs/container_1628774384301_0003_02_000001/root",
        "amHostHttpAddress": "slave3:8042",
        "allocatedMB": -1,
        "allocatedVCores": -1,
        "runningContainers": -1,
        "memorySeconds": 1394,
        "vcoreSeconds": 0,
        "preemptedResourceMB": 0,
        "preemptedResourceVCores": 0,
        "numNonAMContainerPreempted": 0,
        "numAMContainerPreempted": 0
        },
        {
        "id": "application_1628774384301_0001",
        "user": "root",
        "name": "WordCount",
        "queue": "default",
        "state": "FAILED",
        "finalStatus": "FAILED",
        "progress": 0.0,
        "trackingUI": "History",
        "trackingUrl": "http://master:8088/cluster/app/application_1628774384301_0001",
        "diagnostics": "Application application_1628774384301_0001 failed 2 times due to AM Container for appattempt_1628774384301_0001_000002 exited with  exitCode: 1\nFor more detailed output, check application tracking page:http://master:8088/cluster/app/application_1628774384301_0001Then, click on links to logs of each attempt.\nDiagnostics: Exception from container-launch.\nContainer id: container_1628774384301_0001_02_000001\nExit code: 1\nStack trace: ExitCodeException exitCode=1: \n\tat org.apache.hadoop.util.Shell.runCommand(Shell.java:585)\n\tat org.apache.hadoop.util.Shell.run(Shell.java:482)\n\tat org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:776)\n\tat org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)\n\tat org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)\n\tat org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n\tat java.lang.Thread.run(Thread.java:748)\n\n\nContainer exited with a non-zero exit code 1\nFailing this attempt. Failing the application.",
        "clusterId": 1628774384301,
        "applicationType": "MAPREDUCE",
        "applicationTags": "",
        "startedTime": 1628819835641,
        "finishedTime": 1628819838465,
        "elapsedTime": 2824,
        "amContainerLogs": "http://slave3:8042/node/containerlogs/container_1628774384301_0001_02_000001/root",
        "amHostHttpAddress": "slave3:8042",
        "allocatedMB": -1,
        "allocatedVCores": -1,
        "runningContainers": -1,
        "memorySeconds": 3839,
        "vcoreSeconds": 0,
        "preemptedResourceMB": 0,
        "preemptedResourceVCores": 0,
        "numNonAMContainerPreempted": 0,
        "numAMContainerPreempted": 0
        },
        {
        "id": "application_1628774384301_0002",
        "user": "root",
        "name": "WordCount",
        "queue": "default",
        "state": "FAILED",
        "finalStatus": "FAILED",
        "progress": 0.0,
        "trackingUI": "History",
        "trackingUrl": "http://master:8088/cluster/app/application_1628774384301_0002",
        "diagnostics": "Application application_1628774384301_0002 failed 2 times due to AM Container for appattempt_1628774384301_0002_000002 exited with  exitCode: 1\nFor more detailed output, check application tracking page:http://master:8088/cluster/app/application_1628774384301_0002Then, click on links to logs of each attempt.\nDiagnostics: Exception from container-launch.\nContainer id: container_1628774384301_0002_02_000001\nExit code: 1\nStack trace: ExitCodeException exitCode=1: \n\tat org.apache.hadoop.util.Shell.runCommand(Shell.java:585)\n\tat org.apache.hadoop.util.Shell.run(Shell.java:482)\n\tat org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:776)\n\tat org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)\n\tat org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)\n\tat org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n\tat java.lang.Thread.run(Thread.java:748)\n\n\nContainer exited with a non-zero exit code 1\nFailing this attempt. Failing the application.",
        "clusterId": 1628774384301,
        "applicationType": "MAPREDUCE",
        "applicationTags": "",
        "startedTime": 1628819846109,
        "finishedTime": 1628819847476,
        "elapsedTime": 1367,
        "amContainerLogs": "http://slave2:8042/node/containerlogs/container_1628774384301_0002_02_000001/root",
        "amHostHttpAddress": "slave2:8042",
        "allocatedMB": -1,
        "allocatedVCores": -1,
        "runningContainers": -1,
        "memorySeconds": 2391,
        "vcoreSeconds": 0,
        "preemptedResourceMB": 0,
        "preemptedResourceVCores": 0,
        "numNonAMContainerPreempted": 0,
        "numAMContainerPreempted": 0
        }
    ],
    "email": "[email protected]",
    "datetime": "2021-08-13-10:54:50"
}

POST "http://collector-ip:port/yarn/clusterappstatistics"

Body:

{
   "statItem": [
      {
         "state": "KILLED",
         "type": "*",
         "count": 0
      },
      {
         "state": "NEW_SAVING",
         "type": "*",
         "count": 0
      },
      {
         "state": "FINISHED",
         "type": "*",
         "count": 0
      },
      {
         "state": "RUNNING",
         "type": "*",
         "count": 0
      },
      {
         "state": "ACCEPTED",
         "type": "*",
         "count": 0
      },
      {
         "state": "SUBMITTED",
         "type": "*",
         "count": 0
      },
      {
         "state": "FAILED",
         "type": "*",
         "count": 3
      },
      {
         "state": "NEW",
         "type": "*",
         "count": 0
      }
   ],
    "email": "[email protected]",
    "datetime": "2021-08-13-10:54:50"
}

POST "http://collector-ip:port/yarn/clusternodes"

Body:

{
   "node": [
      {
         "rack": "/default-rack",
         "state": "RUNNING",
         "id": "slave3:46053",
         "nodeHostName": "slave3",
         "nodeHTTPAddress": "slave3:8042",
         "lastHealthUpdate": 1628819865972,
         "version": "2.7.7",
         "healthReport": "",
         "numContainers": 0,
         "usedMemoryMB": 0,
         "availMemoryMB": 4096,
         "usedVirtualCores": 0,
         "availableVirtualCores": 2
      },
      {
         "rack": "/default-rack",
         "state": "RUNNING",
         "id": "slave1:35921",
         "nodeHostName": "slave1",
         "nodeHTTPAddress": "slave1:8042",
         "lastHealthUpdate": 1628819865962,
         "version": "2.7.7",
         "healthReport": "",
         "numContainers": 0,
         "usedMemoryMB": 0,
         "availMemoryMB": 4096,
         "usedVirtualCores": 0,
         "availableVirtualCores": 2
      },
      {
         "rack": "/default-rack",
         "state": "RUNNING",
         "id": "slave2:43545",
         "nodeHostName": "slave2",
         "nodeHTTPAddress": "slave2:8042",
         "lastHealthUpdate": 1628819865962,
         "version": "2.7.7",
         "healthReport": "",
         "numContainers": 0,
         "usedMemoryMB": 0,
         "availMemoryMB": 4096,
         "usedVirtualCores": 0,
         "availableVirtualCores": 2
      }
   ],
    "email": "[email protected]",
    "datetime": "2021-08-13-10:54:50"
}

POST "http://collector-ip:port/hdfs/info"

Body:

{
    "size": 100,
    "used": 100,
    "available": 100,
    "usePercentage": 100,
    "email": "[email protected]",
    "datetime": DATETIME_FORMAT
}

Convert app to responsive app.

1. What

We should make the following design responsive.
The xd to flutter plugin provided by Adobe xd is difficult to respond to.
We have to go through the process of refactoring your code.

Design prototype : https://xd.adobe.com/view/3b380aca-6f30-43ab-a408-53407a516034-6e6b/

2. Why

Our application runs not only in the tablet PC environment, but also in the desktop environment such as windows, mac, and linux.
The minimum resolution was fixed at 1280 * 768 in the previous meeting, but it should be possible to increase the resolution.
Making our app responsive is inevitable.

3. How(You guess)

Block provider pattern, and just coding it to convert to responsive app.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.