메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


----.git폴더를 삭제하고 다시 git에 추가하고 서버(bitbucket.org)의 gooperone계정에 반영하는 방법

1. 현재 상태 확인
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (dev)
$ git status
fatal: Not a git repository (or any of the parent directories): .git


2. .git폴더가 없으므로 새로 생성하여 초기화 해줌

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf
$ git init
Initialized empty Git repository in C:/dev/workspace/gsdaf/.git/


3. 원격저장소를 로컬과 연결함

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git remote add origin https://gooperone@bitbucket.org/gooperone/gsda.git


4. master에 push하려 하지만 오류발생함

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'https://gooperone@bitbucket.org/gooperone/gsda.git'


5. 파일목록 확인

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ ls
build.gradle  gsda-client/  gsda-common/  gsda-doc/  gsda-web/  LICENSE  pom.xml  README.md  src/


6. 현재 상태 확인

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        LICENSE
        README.md
        gsda-client/
        gsda-common/
        gsda-doc/
        gsda-web/
        pom.xml
        src/

nothing added to commit but untracked files present (use "git add" to track)


7. 현재 폴더 내용을 git에 등록함

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git add *
The following paths are ignored by one of your .gitignore files:
build.gradle
Use -f if you really want to add them.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/conf/ExceptionHelper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/kafka/avro/COL_ONEM2M.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/kafka/avro/COL_RDBMS.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSDeviceContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSLocationContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSPersonalContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/OneM2MContainerType.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/SurveyInfoDTO.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/UserInOutInfoDTO.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/onem2m/OneM2MSubscribeUriMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/AttendanceServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/PresenceServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/SurveyServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/UserInOutServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/model/ICBMSContextConditionModel.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/query/DeviceResource.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/resources/log4j.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/build_eclipse.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/configuration.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/quick-start.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-web/src/main/webapp/WEB-INF/config/action-servlet.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-web/src/main/webapp/WEB-INF/config/log4j.xml.
The file will have its original line endings in your working directory.


8. 다시 상태 확인

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   LICENSE
        new file:   README.md
        new file:   gsda-client/pom.xml
        new file:   gsda-client/src/main/java/com/gooper/icbms/sda/hbase/onem2m/AvroOneM2MDataToHBaseSubscribe.java
        .......
        new file:   gsda-client/src/test/java/com/gooper/icbms/sda/sda_client/AppTest.java
        new file:   gsda-common/pom.xml
        new file:   gsda-common/src/main/java/com/gooper/icbms/sda/comm/SchComm.java
        .....
        new file:   gsda-doc/build_eclipse.md

        new file:   gsda-web/pom.xml
        new file:   gsda-web/src/main/java/com/gooper/icbms/sda/itf/ci/controller/CiController.java
        ......
        new file:   src/main/webapp/WEB-INF/jsp/sample/boardList.jsp
        new file:   src/main/webapp/WEB-INF/web.xml
        new file:   src/main/webapp/index.jsp


9. 첫번재 커밋수행
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git commit -m "First Commit."
[master (root-commit) 8f1a2c9] First Commit.
 346 files changed, 38605 insertions(+)
 create mode 100644 LICENSE
 create mode 100644 README.md
 create mode 100644 gsda-client/pom.xml
 create mode 100644 gsda-client/src/main/java/com/gooper/icbms/sda/hbase/onem2m/AvroOneM2MDataToHBaseSubscribe.java
 ....
 create mode 100644 gsda-client/src/test/java/com/gooper/icbms/sda/sda_client/AppTest.java
 create mode 100644 gsda-common/pom.xml
 create mode 100644 gsda-common/src/main/java/com/gooper/icbms/sda/comm/SchComm.java
 ......
 create mode 100644 gsda-common/src/main/resources/mybatis-config.xml
 create mode 100644 gsda-doc/build_eclipse.md
 create mode 100644 gsda-web/src/main/java/com/gooper/icbms/sda/itf/ci/controller/CiController.java
 .....
 create mode 100644 pom.xml
 create mode 100644 src/main/java/com/gooper/icbms/sda/comm/common/THJobTest1.java
 ....
 create mode 100644 src/main/webapp/index.jsp


10. master 브랜치에 push수행

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git push -u origin master
Counting objects: 466, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (403/403), done.
Writing objects: 100% (466/466), 302.18 KiB | 0 bytes/s, done.
Total 466 (delta 157), reused 0 (delta 0)
To https://bitbucket.org/gooperone/gsda.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$

번호 제목 글쓴이 날짜 조회 수
557 컬럼및 라인의 구분자를 지정하여 sqoop으로 데이타를 가져오고 hive테이블을 생성하는 명령문 총관리자 2018.08.03 415
556 sqoop으로 mariadb에 접근해서 hive 테이블로 자동으로 생성하기 총관리자 2018.08.03 667
555 Last transaction was partial에 따른 Unable to load database on disk오류 발생시 조치사항 총관리자 2018.08.03 3973
554 RHEL 7.4에 zeppelin 0.7.4 설치 총관리자 2018.07.31 196
553 conda를 이용한 jupyterhub(v0.9)및 jupyter설치 (v4.4.0) 총관리자 2018.07.30 416
552 anaconda3 (v5.2) 설치및 머신러닝 관련 라이브러리 설치 절차 총관리자 2018.07.27 513
551 anaconda3(v5.4)를 이용하여 tensorflow설치후 ipython프로그램을 실행하여 import할때 오류발생시 조치 총관리자 2018.07.27 188
550 HiveServer2인증을 PAM을 이용하도록 설정하는 방법 총관리자 2018.07.21 253
549 [postgresql 9.x] PostgreSQL Replication 구축하기 총관리자 2018.07.17 226
548 spark 2.3.0을 설치하가 위해서 parcel에 다음 url을 입력한다. 총관리자 2018.07.15 198
547 sentry설정후 beeline으로 hive2server에 접속하여 admin계정에 admin권한 부여하기 총관리자 2018.07.03 334
546 upsert구현방법(년-월-일 파티션을 기준으로) 및 테스트 script file 총관리자 2018.07.03 1219
545 resouce manager에 dr.who가 아닌 다른 사용자로 로그인 하기 총관리자 2018.06.28 1207
544 하둡기반 데이타 모델링(6편) 총관리자 2018.06.27 197
543 CDH에서 Sentry 개념및 설정 file 총관리자 2018.06.21 499
542 cloudera에서 spark-shell를 실행했을때 default master는 spark.master=yarn-client임 총관리자 2018.06.20 181
541 dr.who로 공격들어오는 경우 조치방법 file 총관리자 2018.06.09 5603
540 spark-shell을 실행하면 "Attempted to request executors before the AM has registered!"라는 오류가 발생하면 총관리자 2018.06.08 541
539 SCM서비스를 추가하는 동안 Unexpected error. Unable to verify database connection. 오류발생시 확인 사항 총관리자 2018.06.08 196
538 Cloudera Manager에서 "Mismatched CDH versions: host has NONE but role expects 5 Suppress..."와 같이 오류 발생시 확인사항 총관리자 2018.06.06 228

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로