from fastapi.security import OAuth2PasswordBeareroauth2_scheme = OAuth2PasswordBearer(tokenUrl="login")@user_router.get("/users/", summary="获取用户列表")defget_users(db=Depends(get_db), token=Depends(oauth2_scheme)):users = db.query(User).all()data =[to_json(user)for user in users]return Result.succeed(data=data)
1、安装Ranger
参照上一个文章
2、修改配置
把各种plugin转到统一目录(源码编译的target目录下拷贝过来),比如 tar zxvf ranger-2.4.0-hdfs-plugin.tar.gz
tar zxvf ranger-2.4.0-hdfs-plugin.tar.gz
vim install.properties
POLICY_MG…