在Apache Airflow中启动数据库时出错

时间:2019-06-06 18:00:03

标签: python shell terminal airflow alembic

我已经在计算机上建立了一个本地环境来测试气流中的Dags,但是当我使用airit initdb在终端中启动数据库时,系统会提示错误消息。

该消息与软件包Alembic有关,并显示<!DOCTYPE HTML> <html> <head> <title>JSONEditor</title> <meta charset="utf-8"> <link href="styles.css" rel="stylesheet"> <script defer src="lib/MyEditor.js"></script> <!-- <script src="app.js"></script> --> <!-- <script src="worker.js"></script> --> </head> <body> <my-editor></my-editor> <template id="my-custom-editor"> <link href="https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/5.32.5/jsoneditor.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <style> #jsoneditor { width: 700px; height: 600px; } #paste, #link, #file { margin-top: 25px; align-content: center; } </style> <div class="container-fluid"> <h1 align="center">Load and save JSON documents</h1> <br><br><br> <div class="row"> <div class="col"> <div id="jsoneditor"></div> </div> <div class="col col-centered"> <div class="row"> <div class="col"> <select id="test" name="form_select" onchange="showDiv(this)"> <option value="paste">paste json</option> <option value="file">Upload file</option> <option value="link">use link</option> </select> </div> <div class="col"> <p> Save a JSON document: <input type="button" id="saveDocument" value="Save"/> </p> </div> </div> <div class="row"> <div class="col"> <div id="file" style="display: none;" class="col-sm col-centered"> Load a JSON document: <input type="file" id="loadDocument" value="Load"/> <button class="button" onclick="readFile()">LOAD JSON</button> </div> <div id="paste" style="display: none;" class="col-sm col-centered"> <h3>Paste JSON data </h3> <textarea id="myText" rows="4" cols="50"></textarea> <button class="button" onclick="loadText()">LOAD JSON</button> </div> <div id="link" style="display: none;" class="col-sm col-centered"> <h3>URL</h3> <input type="text" id="url"> <button class="button" onclick="urlOnclick()">LOAD JSON</button> </div> </div> </div> </div> </div> </div> </template> </body> </html>

有什么建议可以解决?

1 个答案:

答案 0 :(得分:0)

通过在配置文件中重新输入数据库路径来修复该问题。