Anaconda
MySQL
Python
Redis
Hadoop
# web-server\DRF\settings.py
# SMTP邮箱设置,怎么申请请自行网上学习
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = '' # 邮箱SMTP服务器地址
EMAIL_HOST_USER = '' # 邮箱用户名
EMAIL_HOST_PASSWORD = '' # 邮箱密码
# EMAIL_USE_TLS = True # 使用TLS加密
DEFAULT_FROM_EMAIL = '' # 默认发件人邮箱
#redis
REDIS_HOST='127.0.0.1'
REDIS_PORT=6379
REDIS_PSW=''
REDIS_DB=1
#MySQL
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'jobfree',
'USER': 'root',
'PASSWORD': 'root',
'HOST': '127.0.0.1',
'PORT': 3306,
'OPTIONS': {'charset': 'utf8mb4'},
},
}
conda activate web
cd web-server
python manage.py migrate
data\travel_test_all.sql,然后完成ETL模块再进行下一步运行
双击web-start.bat
cd web-server
conda activate jobfree
python manage.py runserver
有集群则跳过
Windows下使用hadoop+hive+sparkSQL-CSDN博客
ETL\init.sql
pip install findspark
ETL\xxx目录下的py文件
model\ALS.py