전체 글 (33) 썸네일형 리스트형 [yum] centos7 에서 yum command 안될때 (cannot access internet) 인터넷 환경 없는 local 에서 방법 /etc/yum.repos.d/ 경로에 repo파일을 만들어서 baseurl 셋팅을 해줘야함. 기존 파일 CentOS-Base.repo 에 baseurl은 주석처리 vi localRepo.repo [localRepo] name = local library baseurl=http://mainhost/localyumrepo gpgcheck=1 enabled=1 vi epel.repo [epel_repo] name = epel_repo baseurl=http://mainhost/epel gpgcheck=0 enabled=1 yum repolist yum list cf) 구글링해서 찾은 결과 (인터넷환경) $route $sudo cat /etc/sysconfig/netwo.. [ssh] 관리서버에서 ssh 로그인(비밀번호입력) 없이 접속 설정 (main host) $ssh-keygen (중간에 나오는것들은 enter) (main host) $ssh-copy-id -i ~/.ssh/id_rsa.pub id@remote_host $ssh id@remote_host 비밀번호 요구하지 않는지 확인 [spark] dataframe get row value 데이터 전처리 원하는 특정 열 (쿼리로 치면 where절) getRowDf = df.filter("col_name = 'value'") 원하는 특정 칼럼들 getColDf = df.select("col1","col2") for row in df.rdd.collect(): print(rolw) 이전 1 ··· 4 5 6 7 8 9 10 11 다음